declare global { var Go: new () => { argv: string[]; env: Record; importObject: WebAssembly.Imports; run: (inst: WebAssembly.Instance) => Promise; }; } export type InitOptions = { argv?: string[]; env?: Record; namespace?: string; imports?: WebAssembly.Imports; wasmUrl?: string; }; export declare function initGoWasm>(opts?: InitOptions): Promise<{ instance: WebAssembly.Instance; api: TApi | undefined; done: Promise; }>;