import { Allocator, Compiled } from './allocator.ts'; import type { BufferSpec } from '../device.ts'; import type { MemoryView } from '../helpers/memoryview.ts'; export declare class WASMAllocator extends Allocator { _alloc: (size: number, options: BufferSpec) => Uint8Array; _copyin: (dest: Uint8Array, src: MemoryView) => undefined; _copyout: (dest: MemoryView, src: Uint8Array) => undefined; _free: (opaque: Uint8Array, options: BufferSpec) => void; } export declare class WASM extends Compiled { static wabt: any; constructor(device: string); init: () => Promise; }