import { ViewKey } from "@anz-bank/vscode-sysl-model"; import { ViewKind, ViewModel, ViewModelDelta } from "@anz-bank/vscode-sysl-plugin"; import { View, ViewSurface } from "../types"; import { WebModel, WebModelDelta } from "./model"; import { Webview } from "./webview"; /** * A view surface that renders onto a Webview. */ export declare class RawWebViewSurface implements ViewSurface { protected readonly webview: Webview; constructor(webview: Webview, initialHtml?: string); setModel(model: WebModel): Promise; updateModel(): Promise; dispose(): void; } /** * A view surface that instructs a Webview to render via postMessage. */ export declare class WebViewSurface implements ViewSurface { protected readonly webview: Webview; constructor(webview: Webview, initialHtml?: string); setModel(model: T): Promise; updateModel(delta: any): Promise; dispose(): void; } export declare class HtmlDocumentView implements View { readonly key: ViewKey; private readonly surface; kind: ViewKind; selection: string | null; constructor(key: ViewKey, surface: WebViewSurface, kind?: ViewKind); setModel(model: WebModel): Promise; updateModel(delta: WebModelDelta): Promise; dispose(): void; }