|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +export function run(): void; |
| 4 | +export function parse_qmd(input: any): any; |
| 5 | +export function greet(): void; |
| 6 | + |
| 7 | +export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; |
| 8 | + |
| 9 | +export interface InitOutput { |
| 10 | + readonly memory: WebAssembly.Memory; |
| 11 | + readonly parse_qmd: (a: any) => any; |
| 12 | + readonly run: () => void; |
| 13 | + readonly greet: () => void; |
| 14 | + readonly abort: () => void; |
| 15 | + readonly calloc: (a: number, b: number) => number; |
| 16 | + readonly clock: () => bigint; |
| 17 | + readonly fclose: (a: number) => number; |
| 18 | + readonly fdopen: (a: number, b: number) => number; |
| 19 | + readonly fprintf: (a: number, b: number, c: number) => number; |
| 20 | + readonly fputc: (a: number, b: number) => number; |
| 21 | + readonly fputs: (a: number, b: number) => number; |
| 22 | + readonly free: (a: number) => void; |
| 23 | + readonly fwrite: (a: number, b: number, c: number, d: number) => number; |
| 24 | + readonly isprint: (a: number) => number; |
| 25 | + readonly iswalnum: (a: number) => number; |
| 26 | + readonly iswalpha: (a: number) => number; |
| 27 | + readonly iswdigit: (a: number) => number; |
| 28 | + readonly iswspace: (a: number) => number; |
| 29 | + readonly malloc: (a: number) => number; |
| 30 | + readonly memcmp: (a: number, b: number, c: number) => number; |
| 31 | + readonly memcpy: (a: number, b: number, c: number) => number; |
| 32 | + readonly memmove: (a: number, b: number, c: number) => number; |
| 33 | + readonly memset: (a: number, b: number, c: number) => number; |
| 34 | + readonly realloc: (a: number, b: number) => number; |
| 35 | + readonly strncmp: (a: number, b: number, c: number) => number; |
| 36 | + readonly towlower: (a: number) => number; |
| 37 | + readonly vsnprintf: (a: number, b: number, c: number, d: number) => number; |
| 38 | + readonly __wbindgen_free: (a: number, b: number, c: number) => void; |
| 39 | + readonly __wbindgen_malloc: (a: number, b: number) => number; |
| 40 | + readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; |
| 41 | + readonly __wbindgen_export_3: WebAssembly.Table; |
| 42 | + readonly __wbindgen_start: () => void; |
| 43 | +} |
| 44 | + |
| 45 | +export type SyncInitInput = BufferSource | WebAssembly.Module; |
| 46 | +/** |
| 47 | +* Instantiates the given `module`, which can either be bytes or |
| 48 | +* a precompiled `WebAssembly.Module`. |
| 49 | +* |
| 50 | +* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. |
| 51 | +* |
| 52 | +* @returns {InitOutput} |
| 53 | +*/ |
| 54 | +export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; |
| 55 | + |
| 56 | +/** |
| 57 | +* If `module_or_path` is {RequestInfo} or {URL}, makes a request and |
| 58 | +* for everything else, calls `WebAssembly.instantiate` directly. |
| 59 | +* |
| 60 | +* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated. |
| 61 | +* |
| 62 | +* @returns {Promise<InitOutput>} |
| 63 | +*/ |
| 64 | +export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>; |
0 commit comments