-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.d.ts
65 lines (48 loc) · 1.84 KB
/
main.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
// Generated by dts-bundle-generator v9.5.1
export interface SelectorBinding extends WebAssembly.Exports {
memory: WebAssembly.Memory;
__wbg_scopeselector_free: (a: number, b: number) => void;
scopeselector_matches: (a: number, b: number, c: number) => number;
scopeselector_get_prefix: (a: number, b: number, c: number) => number;
parse: (a: number, b: number) => number;
__wbindgen_export_0: WebAssembly.Table;
__wbindgen_malloc: (a: number, b: number) => number;
__wbindgen_realloc: (a: number, b: number, c: number, d: number) => number;
__wbindgen_start: () => void;
}
export declare function __wbg_set_wasm(val: SelectorBinding): void;
/**
* @param {string} selector
* @returns {ScopeSelector}
*/
export declare function parse(selector: string): ScopeSelector;
export declare class ScopeSelector {
free(): void;
/**
* @param {string} scope
* @returns {boolean}
*/
matches(scope: string): boolean;
/**
* @param {string} scope
* @returns {string | undefined}
*/
get_prefix(scope: string): string | void;
}
export declare function __wbindgen_init_externref_table(): void;
export declare function __wbindgen_throw(arg0: number, arg1: number): void;
export declare function __wbg_get_imports(): WebAssembly.Imports;
export interface InstantiatorOptions {
instantiator: WebAssemblyInstantiator;
}
export interface DataOptions {
data: ArrayBufferView | ArrayBuffer | Response;
}
export type Options = InstantiatorOptions | DataOptions;
export declare function loadWASM(options: Options): Promise<void>;
export declare function loadWASM(data: ArrayBufferView | ArrayBuffer | Response): Promise<void>;
export interface WebAssemblyInstantiator {
(importObject?: WebAssembly.Imports): Promise<WebAssembly.WebAssemblyInstantiatedSource>;
}
export as namespace selector;
export {};