export type * from "../../dist/wasm/perspective-js.d.ts"; import type * as psp from "../../dist/wasm/perspective-js.d.ts"; export type * from "./virtual_server.ts"; import * as psp_virtual from "./virtual_server.ts"; export { GenericSQLVirtualServerModel, VirtualDataSlice, VirtualServer, } from "../../dist/wasm/perspective-js.js"; export declare function createMessageHandler(handler: psp_virtual.VirtualServerHandler): Promise; export declare function init_server(wasm: Uint8Array | Promise | ArrayBuffer | Response | WebAssembly.Module, disable_stage_0?: boolean): void; export type PerspectiveWasm = ArrayBuffer | Response | typeof psp | Promise; export declare function init_client(wasm: PerspectiveWasm, disable_stage_0?: boolean): void; /** * Returns the compiled `WebAssembly.Module` for the perspective-js client * runtime. The module is structured-cloneable, so it can be sent via * `postMessage` to a Worker which can instantiate its own `Client` without * re-fetching or re-compiling the wasm binary. * * Requires that the client wasm has been initialized — typically by a prior * call to `init_client(...)`, or implicitly by mounting a `` * element. Throws otherwise. * * # Examples * * ```javascript * const mod = await perspective.getCompiledClientWasm(); * worker.postMessage({ kind: "init", clientWasm: mod }, [port]); * ``` */ export declare function getCompiledClientWasm(): Promise; export declare function websocket(url: string | URL): Promise; export declare function worker(worker?: Promise): Promise; declare const _default: { websocket: typeof websocket; worker: typeof worker; init_client: typeof init_client; init_server: typeof init_server; createMessageHandler: typeof createMessageHandler; getCompiledClientWasm: typeof getCompiledClientWasm; GenericSQLVirtualServerModel: typeof psp.GenericSQLVirtualServerModel; VirtualDataSlice: typeof psp.VirtualDataSlice; VirtualServer: typeof psp.VirtualServer; }; export default _default;