/* tslint:disable */ /* eslint-disable */ export class ProxyContext { free(): void; [Symbol.dispose](): void; /** * Creates a new `ProxyContext` instance. */ constructor(context: any); /** * A convenience function to untar a tarball and call a callback for each * entry. */ untar(data: Uint8Array, cb: Function): void; /** * Returns the JavaScript this. */ readonly context: any; } export class TypstParser { private constructor(); free(): void; [Symbol.dispose](): void; get_semantic_token_legend(): any; get_semantic_tokens_by_string(src: string, offset_encoding: string): Uint32Array; } export class TypstParserBuilder { free(): void; [Symbol.dispose](): void; constructor(); build(): Promise; } export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly __wbg_typstparserbuilder_free: (a: number, b: number) => void; readonly typstparserbuilder_new: (a: number) => void; readonly typstparserbuilder_build: (a: number) => number; readonly __wbg_typstparser_free: (a: number, b: number) => void; readonly typstparser_get_semantic_token_legend: (a: number, b: number) => void; readonly typstparser_get_semantic_tokens_by_string: (a: number, b: number, c: number, d: number, e: number, f: number) => void; readonly __wbg_proxycontext_free: (a: number, b: number) => void; readonly proxycontext_context: (a: number) => number; readonly proxycontext_untar: (a: number, b: number, c: number, d: number, e: number) => void; readonly proxycontext_new: (a: number) => number; readonly qcms_transform_data_rgb_out_lut_precache: (a: number, b: number, c: number, d: number) => void; readonly qcms_transform_data_rgba_out_lut_precache: (a: number, b: number, c: number, d: number) => void; readonly qcms_transform_data_bgra_out_lut_precache: (a: number, b: number, c: number, d: number) => void; readonly qcms_transform_data_rgb_out_lut: (a: number, b: number, c: number, d: number) => void; readonly qcms_transform_data_rgba_out_lut: (a: number, b: number, c: number, d: number) => void; readonly qcms_transform_data_bgra_out_lut: (a: number, b: number, c: number, d: number) => void; readonly qcms_transform_release: (a: number) => void; readonly qcms_profile_precache_output_transform: (a: number) => void; readonly qcms_enable_iccv4: () => void; readonly qcms_profile_is_bogus: (a: number) => number; readonly qcms_white_point_sRGB: (a: number) => void; readonly lut_interp_linear16: (a: number, b: number, c: number) => number; readonly lut_inverse_interp16: (a: number, b: number, c: number) => number; readonly __wasm_bindgen_func_elem_73: (a: number, b: number, c: number) => void; readonly __wasm_bindgen_func_elem_86: (a: number, b: number) => void; readonly __wasm_bindgen_func_elem_1122: (a: number, b: number, c: number, d: number) => void; readonly __wbindgen_export: (a: number, b: number) => number; readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_export3: (a: number) => void; readonly __wbindgen_export4: (a: number, b: number, c: number) => void; readonly __wbindgen_add_to_stack_pointer: (a: number) => number; } export type SyncInitInput = BufferSource | WebAssembly.Module; /** * Instantiates the given `module`, which can either be bytes or * a precompiled `WebAssembly.Module`. * * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated. * * @returns {InitOutput} */ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput; /** * If `module_or_path` is {RequestInfo} or {URL}, makes a request and * for everything else, calls `WebAssembly.instantiate` directly. * * @param {{ module_or_path: InitInput | Promise }} module_or_path - Passing `InitInput` directly is deprecated. * * @returns {Promise} */ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise } | InitInput | Promise): Promise;