/** * WASM-backed implementation of the synurang FFI `PluginHost` interface. * * Routes unary RPCs through `__pb(bytes) -> Uint8Array` * exports and streaming RPCs through the matching * `_stream_{open,send,recv,close_send,close}` exports. */ import type { PluginHost, PluginStream } from "./generated/volvoxgrid_ffi.js"; export { PluginHost, PluginStream }; export declare const STREAM_STATUS_DATA = 0; export declare const STREAM_STATUS_EOF = 1; export declare const STREAM_STATUS_ERROR = 2; export declare const STREAM_STATUS_PENDING = 3; export interface WasmPluginHostOptions { /** Native prefix used by the wasm exports (defaults to `"volvox_grid"`). */ nativePrefix?: string; } export declare class WasmPluginHost implements PluginHost { private readonly wasm; private readonly prefix; constructor(wasm: Record, options?: WasmPluginHostOptions); invoke(_serviceName: string, methodName: string, data: Uint8Array): Uint8Array; openStream(_serviceName: string, methodName: string): PluginStream; private unaryExportName; private streamApi; private lastError; } //# sourceMappingURL=proto-host.d.ts.map