110 lines
5.1 KiB
TypeScript
110 lines
5.1 KiB
TypeScript
/* 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;
|
|
|
|
export function mount_mindmap_shell(container: Element, options: any): number;
|
|
|
|
export function unmount(mount_id: number): void;
|
|
|
|
export function unmount_mindmap_shell(mount_id: number): void;
|
|
|
|
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
|
|
export interface InitOutput {
|
|
readonly memory: WebAssembly.Memory;
|
|
readonly mount: (a: any, b: any) => [number, number, number];
|
|
readonly mount_mindmap_shell: (a: any, b: any) => [number, number, number];
|
|
readonly unmount: (a: number) => [number, number];
|
|
readonly unmount_mindmap_shell: (a: number) => [number, number];
|
|
readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
|
|
readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
|
|
readonly intounderlyingbytesource_cancel: (a: number) => void;
|
|
readonly intounderlyingbytesource_pull: (a: number, b: any) => any;
|
|
readonly intounderlyingbytesource_start: (a: number, b: any) => void;
|
|
readonly intounderlyingbytesource_type: (a: number) => number;
|
|
readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
|
|
readonly intounderlyingsink_abort: (a: number, b: any) => any;
|
|
readonly intounderlyingsink_close: (a: number) => any;
|
|
readonly intounderlyingsink_write: (a: number, b: any) => any;
|
|
readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
|
|
readonly intounderlyingsource_cancel: (a: number) => void;
|
|
readonly intounderlyingsource_pull: (a: number, b: any) => any;
|
|
readonly wasm_bindgen__convert__closures_____invoke__h854f4676fa692669: (a: number, b: number, c: any) => [number, number];
|
|
readonly wasm_bindgen__convert__closures_____invoke__h1a94ffe1b1ed8350: (a: number, b: number, c: any, d: any) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__h8eb6fe4c74941e76: (a: number, b: number, c: any) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__h62d2a368ae4b53af: (a: number, b: number, c: any) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__h11eca4a91ce748ff: (a: number, b: number, c: any) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__h62d2a368ae4b53af_4: (a: number, b: number, c: any) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__hc1d64d6259b30403: (a: number, b: number, c: any) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__hdc3cd9a3517d1395: (a: number, b: number) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__h4fb07e4e902e51ce: (a: number, b: number) => void;
|
|
readonly wasm_bindgen__convert__closures_____invoke__hec6d5749a9244252: (a: number, b: number) => void;
|
|
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>;
|