export declare function getInstance(): WebAssembly.Instance; /** * Grow WASM linear memory if needed so `neededBytes` of input (plus the * offset reserved for Zig's stack/globals) fits without truncation. * * Fixed 2026-08-23: writeToMemory() used to silently truncate any input * larger than the WASM module's initial memory (~1.06MB usable) BEFORE * estimate_tokens ever ran — no error, no flag, just a token count * computed over a truncated prefix. This defeated the "never * under-report" invariant exactly where it matters most: calls near a * model's real context ceiling. WebAssembly.Memory is growable at * runtime (confirmed: `memory.grow()` works on this module, 17 pages -> * 117 pages tested directly) — growing does not move or invalidate * existing data, it only appends new zeroed pages, so this is safe to * do lazily on every call with no effect on correctness for small inputs. */ export declare function ensureCapacity(memory: WebAssembly.Memory, neededBytes: number): void; export declare function writeToMemory(content: string): number;