import { IRPCProtocol } from '@opensumi/ide-connection'; import { IDisposable } from '@opensumi/ide-core-common'; import { IExtHostIDEWindow, IExtPlainWebviewWindow, IIDEWindowWebviewEnv, IIDEWindowWebviewOptions, IMainThreadIDEWindow, IWindowInfo } from '../../../common/sumi/window'; import { IExtHostCommands } from '../../../common/vscode'; export declare class ExtHostIDEWindow implements IExtHostIDEWindow { private rpcProtocol; private proxy; private _windowMaps; constructor(rpcProtocol: IRPCProtocol); createWebviewWindow(webviewId: string, options?: IIDEWindowWebviewOptions, env?: IIDEWindowWebviewEnv): Promise; $postMessage(webviewId: string, message: any): Promise; $dispatchClosed(webviewId: string): Promise; } export declare class ExtIDEWebviewWindow implements IExtPlainWebviewWindow { private webviewId; private info; private proxy; private _onMessageEmitter; private _onClosedEmitter; private disposableCollection; constructor(webviewId: string, info: IWindowInfo, proxy: IMainThreadIDEWindow, dispose: IDisposable); get webContentsId(): number; get windowId(): number; get onMessage(): import("@opensumi/ide-core-common").Event; get onClosed(): import("@opensumi/ide-core-common").Event; show(): Promise; hide(): Promise; postMessage(message: any): Promise; loadUrl(url: string): Promise; setSize(size: { width: number; height: number; }): Promise; setAlwaysOnTop(flag: boolean): Promise; dispose(): void; dispatchClosed(): Promise; dispatchMessage(message: any): Promise; } export declare function createWindowApiFactory(extHostCommands: IExtHostCommands, extHostWindow: ExtHostIDEWindow): { reloadWindow: () => Promise; createWebviewWindow: (webviewId: string, options?: IIDEWindowWebviewOptions, env?: IIDEWindowWebviewEnv) => Promise; }; //# sourceMappingURL=ext.host.window.d.ts.map