2026-04-22 05:57:06 +08:00
|
|
|
/* tslint:disable */
|
|
|
|
|
/* eslint-disable */
|
|
|
|
|
/**
|
|
|
|
|
* The `ReadableStreamType` enum.
|
|
|
|
|
*
|
|
|
|
|
* *This API requires the following crate features to be activated: `ReadableStreamType`*
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
type ReadableStreamType = "bytes";
|
|
|
|
|
|
|
|
|
|
export class IntoUnderlyingByteSource {
|
|
|
|
|
private constructor();
|
|
|
|
|
free(): void;
|
|
|
|
|
[Symbol.dispose](): void;
|
|
|
|
|
cancel(): void;
|
|
|
|
|
pull(controller: ReadableByteStreamController): Promise<any>;
|
|
|
|
|
start(controller: ReadableByteStreamController): void;
|
|
|
|
|
readonly autoAllocateChunkSize: number;
|
|
|
|
|
readonly type: ReadableStreamType;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class IntoUnderlyingSink {
|
|
|
|
|
private constructor();
|
|
|
|
|
free(): void;
|
|
|
|
|
[Symbol.dispose](): void;
|
|
|
|
|
abort(reason: any): Promise<any>;
|
|
|
|
|
close(): Promise<any>;
|
|
|
|
|
write(chunk: any): Promise<any>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export class IntoUnderlyingSource {
|
|
|
|
|
private constructor();
|
|
|
|
|
free(): void;
|
|
|
|
|
[Symbol.dispose](): void;
|
|
|
|
|
cancel(): void;
|
|
|
|
|
pull(controller: ReadableStreamDefaultController): Promise<any>;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export function mount(container: Element, options: any): number;
|
|
|
|
|
|
2026-05-11 12:27:40 +08:00
|
|
|
export function mount_mindmap_shell(container: Element, options: any): number;
|
|
|
|
|
|
2026-04-22 05:57:06 +08:00
|
|
|
export function unmount(mount_id: number): void;
|
|
|
|
|
|
2026-05-11 12:27:40 +08:00
|
|
|
export function unmount_mindmap_shell(mount_id: number): void;
|
|
|
|
|
|
2026-04-22 05:57:06 +08:00
|
|
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
|
|
|
|
|
|
|
|
export interface InitOutput {
|
|
|
|
|
readonly memory: WebAssembly.Memory;
|
2026-06-01 09:29:12 +08:00
|
|
|
readonly mount_mindmap_shell: (a: any, b: any) => [number, number, number];
|
|
|
|
|
readonly unmount_mindmap_shell: (a: number) => [number, number];
|
2026-06-09 09:20:56 +08:00
|
|
|
readonly mount: (a: any, b: any) => [number, number, number];
|
|
|
|
|
readonly unmount: (a: number) => [number, number];
|
2026-06-01 09:29:12 +08:00
|
|
|
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
|
|
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
2026-06-09 09:20:56 +08:00
|
|
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
|
|
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
|
|
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
|
|
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
|
|
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
|
|
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
|
|
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
|
|
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
2026-04-22 05:57:06 +08:00
|
|
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
2026-06-01 09:29:12 +08:00
|
|
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
2026-06-09 09:20:56 +08:00
|
|
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h3a3182d847094e12: (a: number, b: number, c: any) => [number, number];
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h0accad0f5d87788a: (a: number, b: number, c: any, d: any) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h396914cf76a9e7a5: (a: number, b: number, c: any) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__had771ddc65647798: (a: number, b: number, c: any) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h0abd2b2fe4652e2a: (a: number, b: number, c: any) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h396914cf76a9e7a5_4: (a: number, b: number, c: any) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__hd90af689bc3e71bf: (a: number, b: number, c: any) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h794babeffd4f821f: (a: number, b: number) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h2b648e7ac8ec1fb5: (a: number, b: number) => void;
|
|
|
|
|
readonly wasm_bindgen__convert__closures_____invoke__h0b7fb40a8610550c: (a: number, b: number) => void;
|
2026-04-22 05:57:06 +08:00
|
|
|
readonly __wbindgen_malloc: (a: number, b: number) => number;
|
|
|
|
|
readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
|
|
|
|
|
readonly __externref_table_alloc: () => number;
|
|
|
|
|
readonly __wbindgen_externrefs: WebAssembly.Table;
|
|
|
|
|
readonly __wbindgen_exn_store: (a: number) => void;
|
|
|
|
|
readonly __wbindgen_free: (a: number, b: number, c: number) => void;
|
|
|
|
|
readonly __wbindgen_destroy_closure: (a: number, b: number) => void;
|
|
|
|
|
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<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
|
|
|
*
|
|
|
|
|
* @returns {Promise<InitOutput>}
|
|
|
|
|
*/
|
|
|
|
|
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|