/* tslint:disable */ /* eslint-disable */ export class JxlInfo { private constructor(); free(): void; [Symbol.dispose](): void; has_alpha: boolean; height: number; num_frames: number; width: number; } /** * Decode a JXL image to PNG (or APNG if animated) */ export function decode_jxl_to_png(data: Uint8Array): Uint8Array; export function get_jxl_info(data: Uint8Array): JxlInfo; export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; export interface InitOutput { readonly memory: WebAssembly.Memory; readonly __wbg_get_jxlinfo_has_alpha: (a: number) => number; readonly __wbg_get_jxlinfo_height: (a: number) => number; readonly __wbg_get_jxlinfo_num_frames: (a: number) => number; readonly __wbg_get_jxlinfo_width: (a: number) => number; readonly __wbg_jxlinfo_free: (a: number, b: number) => void; readonly __wbg_set_jxlinfo_has_alpha: (a: number, b: number) => void; readonly __wbg_set_jxlinfo_height: (a: number, b: number) => void; readonly __wbg_set_jxlinfo_num_frames: (a: number, b: number) => void; readonly __wbg_set_jxlinfo_width: (a: number, b: number) => void; readonly decode_jxl_to_png: (a: number, b: number) => [number, number, number, number]; readonly get_jxl_info: (a: number, b: number) => [number, number, number]; readonly __wbindgen_free: (a: number, b: number, c: number) => void; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_externrefs: WebAssembly.Table; readonly __externref_table_dealloc: (a: number) => void; readonly __wbindgen_start: () => void; } 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;