declare namespace wasm_bindgen { /* 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; start(controller: ReadableByteStreamController): void; pull(controller: ReadableByteStreamController): Promise; cancel(): void; readonly type: ReadableStreamType; readonly autoAllocateChunkSize: number; } export class IntoUnderlyingSink { private constructor(); free(): void; write(chunk: any): Promise; close(): Promise; abort(reason: any): Promise; } export class IntoUnderlyingSource { private constructor(); free(): void; pull(controller: ReadableStreamDefaultController): Promise; cancel(): void; } export class WebHandle { free(): void; constructor(app_options: any); start(canvas: any): Promise; toggle_panel_overrides(value?: boolean | null): void; override_panel_state(panel: string, state?: string | null): void; destroy(): void; has_panicked(): boolean; panic_message(): string | undefined; panic_callstack(): string | undefined; /** * Add a new receiver streaming data from the given url. * * If `follow` is `true`, and the url is an HTTP source or file path, * the viewer will open the stream * in `Following` mode rather than `Playing` mode. * * Websocket streams are always opened in `Following` mode. * * It is an error to open a channel twice with the same id. */ add_receiver(url: string, follow?: boolean | null): void; remove_receiver(url: string): void; /** * Open a new channel for streaming data. * * It is an error to open a channel twice with the same id. */ open_channel(id: string, channel_name: string): void; /** * Close an existing channel for streaming data. * * No-op if the channel is already closed. */ close_channel(id: string): void; /** * Add an rrd to the viewer directly from a byte array. */ send_rrd_to_channel(id: string, data: Uint8Array): void; send_table_to_channel(id: string, data: Uint8Array): void; get_active_recording_id(): string | undefined; set_active_recording_id(recording_id: string): void; get_active_timeline(recording_id: string): string | undefined; /** * Set the active timeline. * * This does nothing if the timeline can't be found. */ set_active_timeline(recording_id: string, timeline_name: string): void; get_time_for_timeline(recording_id: string, timeline_name: string): number | undefined; set_time_for_timeline(recording_id: string, timeline_name: string, time: number): void; get_timeline_time_range(recording_id: string, timeline_name: string): any; get_playing(recording_id: string): boolean | undefined; set_playing(recording_id: string, value: boolean): void; set_credentials(access_token: string, email: string): void; } } declare type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module; declare interface InitOutput { readonly memory: WebAssembly.Memory; readonly __wbg_webhandle_free: (a: number, b: number) => void; readonly webhandle_new: (a: any) => [number, number, number]; readonly webhandle_start: (a: number, b: any) => any; readonly webhandle_toggle_panel_overrides: (a: number, b: number) => void; readonly webhandle_override_panel_state: (a: number, b: number, c: number, d: number, e: number) => [number, number]; readonly webhandle_destroy: (a: number) => void; readonly webhandle_has_panicked: (a: number) => number; readonly webhandle_panic_message: (a: number) => [number, number]; readonly webhandle_panic_callstack: (a: number) => [number, number]; readonly webhandle_add_receiver: (a: number, b: number, c: number, d: number) => void; readonly webhandle_remove_receiver: (a: number, b: number, c: number) => void; readonly webhandle_open_channel: (a: number, b: number, c: number, d: number, e: number) => void; readonly webhandle_close_channel: (a: number, b: number, c: number) => void; readonly webhandle_send_rrd_to_channel: (a: number, b: number, c: number, d: number, e: number) => void; readonly webhandle_send_table_to_channel: (a: number, b: number, c: number, d: number, e: number) => void; readonly webhandle_get_active_recording_id: (a: number) => [number, number]; readonly webhandle_set_active_recording_id: (a: number, b: number, c: number) => void; readonly webhandle_get_active_timeline: (a: number, b: number, c: number) => [number, number]; readonly webhandle_set_active_timeline: (a: number, b: number, c: number, d: number, e: number) => void; readonly webhandle_get_time_for_timeline: (a: number, b: number, c: number, d: number, e: number) => [number, number]; readonly webhandle_set_time_for_timeline: (a: number, b: number, c: number, d: number, e: number, f: number) => void; readonly webhandle_get_timeline_time_range: (a: number, b: number, c: number, d: number, e: number) => any; readonly webhandle_get_playing: (a: number, b: number, c: number) => number; readonly webhandle_set_playing: (a: number, b: number, c: number, d: number) => void; readonly webhandle_set_credentials: (a: number, b: number, c: number, d: number, e: number) => void; readonly rust_lz4_wasm_shim_malloc: (a: number) => number; readonly rust_lz4_wasm_shim_memcmp: (a: number, b: number, c: number) => number; readonly rust_lz4_wasm_shim_calloc: (a: number, b: number) => number; readonly rust_lz4_wasm_shim_free: (a: number) => void; readonly rust_lz4_wasm_shim_memcpy: (a: number, b: number, c: number) => number; readonly rust_lz4_wasm_shim_memmove: (a: number, b: number, c: number) => number; readonly rust_lz4_wasm_shim_memset: (a: number, b: number, c: number) => number; readonly rust_zstd_wasm_shim_qsort: (a: number, b: number, c: number, d: number) => void; readonly rust_zstd_wasm_shim_malloc: (a: number) => number; readonly rust_zstd_wasm_shim_memcmp: (a: number, b: number, c: number) => number; readonly rust_zstd_wasm_shim_calloc: (a: number, b: number) => number; readonly rust_zstd_wasm_shim_free: (a: number) => void; readonly rust_zstd_wasm_shim_memcpy: (a: number, b: number, c: number) => number; readonly rust_zstd_wasm_shim_memmove: (a: number, b: number, c: number) => number; readonly rust_zstd_wasm_shim_memset: (a: number, b: number, c: number) => number; 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; readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void; readonly intounderlyingsource_pull: (a: number, b: any) => any; readonly intounderlyingsource_cancel: (a: number) => void; readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void; readonly intounderlyingsink_write: (a: number, b: any) => any; readonly intounderlyingsink_close: (a: number) => any; readonly intounderlyingsink_abort: (a: number, b: any) => any; readonly __externref_table_alloc: () => number; readonly __wbindgen_export_1: WebAssembly.Table; readonly __wbindgen_exn_store: (a: number) => void; readonly __wbindgen_malloc: (a: number, b: number) => number; readonly __wbindgen_realloc: (a: number, b: number, c: number, d: number) => number; readonly __wbindgen_free: (a: number, b: number, c: number) => void; readonly __wbindgen_export_6: WebAssembly.Table; readonly __externref_table_dealloc: (a: number) => void; readonly closure16_externref_shim_multivalue_shim: (a: number, b: number, c: any) => [number, number]; readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h95f1934b570fe0a7: (a: number, b: number) => void; readonly closure3674_externref_shim: (a: number, b: number, c: any) => void; readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__hfe2a4279ebf7f484: (a: number, b: number) => void; readonly closure20451_externref_shim: (a: number, b: number, c: any) => void; readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h184bc4d2a89ae7d2_multivalue_shim: (a: number, b: number) => [number, number]; readonly closure21069_externref_shim: (a: number, b: number, c: any) => void; readonly closure25187_externref_shim: (a: number, b: number, c: any) => void; readonly _dyn_core__ops__function__FnMut_____Output___R_as_wasm_bindgen__closure__WasmClosure___describe__invoke__h749b4b4534316094: (a: number, b: number) => void; readonly closure29772_externref_shim: (a: number, b: number, c: any) => void; readonly closure29907_externref_shim: (a: number, b: number, c: any, d: any) => void; readonly __wbindgen_start: () => void; } /** * 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} */ declare function wasm_bindgen (module_or_path: { module_or_path: InitInput | Promise } | InitInput | Promise): Promise; export type WebHandle = wasm_bindgen.WebHandle; export default function(): wasm_bindgen;