| 1 | import { |
| 2 | ToCoreFromWebviewProtocol, |
| 3 | ToWebviewFromCoreProtocol, |
| 4 | } from "./coreWebview"; |
| 5 | import { ToWebviewOrCoreFromIdeProtocol } from "./ide"; |
| 6 | import { ToCoreFromIdeProtocol, ToIdeFromCoreProtocol } from "./ideCore"; |
| 7 | import { |
| 8 | ToIdeFromWebviewProtocol, |
| 9 | ToWebviewFromIdeProtocol, |
| 10 | } from "./ideWebview"; |
| 11 | |
| 12 | export type IProtocol = Record<string, [any, any]>; |
| 13 | |
| 14 | // IDE |
| 15 | export type ToIdeProtocol = ToIdeFromWebviewProtocol & ToIdeFromCoreProtocol; |
| 16 | export type FromIdeProtocol = ToWebviewFromIdeProtocol & |
| 17 | ToCoreFromIdeProtocol & |
| 18 | ToWebviewOrCoreFromIdeProtocol; |
| 19 | |
| 20 | // Webview |
| 21 | export type ToWebviewProtocol = ToWebviewFromIdeProtocol & |
| 22 | ToWebviewFromCoreProtocol & |
| 23 | ToWebviewOrCoreFromIdeProtocol; |
| 24 | export type FromWebviewProtocol = ToIdeFromWebviewProtocol & |
| 25 | ToCoreFromWebviewProtocol; |
| 26 | |
| 27 | // Core |
| 28 | export type ToCoreProtocol = ToCoreFromIdeProtocol & |
| 29 | ToCoreFromWebviewProtocol & |
| 30 | ToWebviewOrCoreFromIdeProtocol; |
| 31 | export type FromCoreProtocol = ToWebviewFromCoreProtocol & |
| 32 | ToIdeFromCoreProtocol; |