import { Arrayable, ConnectionAdapter, JSONRPC } from "./connection-DNMjSBUK.cjs";
import { ExtensionContext, Webview } from "vscode";

//#region src/adapters/vscode-webview.d.ts
interface VSCodeWebviewAdapterOptions {
  webview: Webview;
  context?: ExtensionContext;
  serialize?(data: Arrayable<JSONRPC.Event>): any;
  deserialize?(data: any): Arrayable<JSONRPC.Event>;
}
declare function createVSCodeWebviewAdapter(webview: Webview, context?: ExtensionContext, extraOptions?: Omit<VSCodeWebviewAdapterOptions, "webview" | "context">): ConnectionAdapter;
declare function createVSCodeWebviewAdapter(options: VSCodeWebviewAdapterOptions): ConnectionAdapter;
//#endregion
export { VSCodeWebviewAdapterOptions, createVSCodeWebviewAdapter };
//# sourceMappingURL=vscode-webview-irjkdOQb.d.cts.map