// TypeScript bindings for emscripten-generated code. Automatically generated at compile time. declare namespace RuntimeExports { /** * Given a pointer 'ptr' to a null-terminated UTF8-encoded string in the * emscripten HEAP, returns a copy of that string as a Javascript String object. * * @param {number} ptr * @param {number=} maxBytesToRead - An optional length that specifies the * maximum number of bytes to read. You can omit this parameter to scan the * string until the first 0 byte. If maxBytesToRead is passed, and the string * at [ptr, ptr+maxBytesToReadr[ contains a null byte in the middle, then the * string will cut short at that byte index. * @param {boolean=} ignoreNul - If true, the function will not stop on a NUL character. * @return {string} */ function UTF8ToString(ptr: number, maxBytesToRead?: number | undefined, ignoreNul?: boolean | undefined): string; function lengthBytesUTF8(str: any): number; function stringToUTF8(str: any, outPtr: any, maxBytesToWrite: any): any; let HEAPU8: Uint8Array; } interface WasmModule { _malloc(_0: number): number; _free(_0: number): void; } type EmbindString = ArrayBuffer|Uint8Array|Uint8ClampedArray|Int8Array|string; export interface ClassHandle { isAliasOf(other: ClassHandle): boolean; delete(): void; deleteLater(): this; isDeleted(): boolean; // @ts-ignore - If targeting lower than ESNext, this symbol might not exist. [Symbol.dispose](): void; clone(): this; } export interface vector_string extends ClassHandle, Iterable { size(): number; get(_0: number): string | undefined; push_back(_0: EmbindString): void; resize(_0: number, _1: EmbindString): void; set(_0: number, _1: EmbindString): boolean; } export interface map_string_string extends ClassHandle { keys(): vector_string; size(): number; get(_0: EmbindString): string | undefined; set(_0: EmbindString, _1: EmbindString): void; } export type IParser = {startElement: (tag: string, attrs: map_string_string) => void, endElement: (tag: string) => void, characterData: (content: string) => void}; interface EmbindModule { vector_string: { new(): vector_string; }; map_string_string: { new(): map_string_string; }; version(): string; parse(_0: EmbindString, _1: IParser): boolean; } export type MainModule = WasmModule & typeof RuntimeExports & EmbindModule; export default function MainModuleFactory (options?: unknown): Promise;