interface WebAssemblyInstantiator { (importObject: Record> | undefined): Promise; } type WebAssemblyInstance = WebAssembly.WebAssemblyInstantiatedSource | WebAssembly.Instance | WebAssembly.Instance['exports']; type OnigurumaLoadOptions = { instantiator: WebAssemblyInstantiator; } | { default: WebAssemblyInstantiator; } | { data: ArrayBufferView | ArrayBuffer | Response; }; type Awaitable = T | Promise; type LoadWasmOptionsPlain = OnigurumaLoadOptions | WebAssemblyInstantiator | ArrayBufferView | ArrayBuffer | Response; type LoadWasmOptions = Awaitable | (() => Awaitable); declare function loadWasm(options: LoadWasmOptions): Promise; export { type LoadWasmOptions as L, type WebAssemblyInstantiator as W, loadWasm as l };