|
| 1 | +/* tslint:disable */ |
| 2 | +/* eslint-disable */ |
| 3 | +export class CQL2 { |
| 4 | + free(): void; |
| 5 | + constructor(v: string); |
| 6 | + is_valid(): boolean; |
| 7 | + to_json(): string; |
| 8 | + to_json_pretty(): string; |
| 9 | + to_text(): string; |
| 10 | +} |
| 11 | + |
| 12 | +export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; |
| 13 | + |
| 14 | +export interface InitOutput { |
| 15 | + readonly memory: WebAssembly.Memory; |
| 16 | + readonly __wbg_cql2_free: (a: number, b: number) => void; |
| 17 | + readonly cql2_new: (a: number, b: number) => [number, number, number]; |
| 18 | + readonly cql2_is_valid: (a: number) => number; |
| 19 | + readonly cql2_to_json: (a: number) => [number, number, number, number]; |
| 20 | + readonly cql2_to_json_pretty: (a: number) => [number, number, number, number]; |
| 21 | + readonly cql2_to_text: (a: number) => [number, number, number, number]; |
| 22 | + readonly __wbindgen_exn_store: (a: number) => void; |
| 23 | + readonly __externref_table_alloc: () => number; |
| 24 | + readonly __wbindgen_export_2: WebAssembly.Table; |
| 25 | + readonly __wbindgen_malloc: (a: number, b: number) => number; |
| 26 | + readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; |
| 27 | + readonly __externref_table_dealloc: (a: number) => void; |
| 28 | + readonly __wbindgen_free: (a: number, b: number, c: number) => void; |
| 29 | + readonly __wbindgen_start: () => void; |
| 30 | +} |
| 31 | + |
| 32 | +export type SyncInitInput = BufferSource | WebAssembly.Module; |
| 33 | +/** |
| 34 | +* Instantiates the given `module`, which can either be bytes or |
| 35 | +* a precompiled `WebAssembly.Module`. |
| 36 | +* |
| 37 | +* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. |
| 38 | +* |
| 39 | +* @returns {InitOutput} |
| 40 | +*/ |
| 41 | +export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; |
| 42 | + |
| 43 | +/** |
| 44 | +* If `module_or_path` is {RequestInfo} or {URL}, makes a request and |
| 45 | +* for everything else, calls `WebAssembly.instantiate` directly. |
| 46 | +* |
| 47 | +* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated. |
| 48 | +* |
| 49 | +* @returns {Promise<InitOutput>} |
| 50 | +*/ |
| 51 | +export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>; |
0 commit comments