rvlite 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +270 -0
- package/bin/cli.js +1685 -0
- package/dist/wasm/README.md +216 -0
- package/dist/wasm/attention/LICENSE +21 -0
- package/dist/wasm/attention/README.md +193 -0
- package/dist/wasm/attention/package.json +17 -0
- package/dist/wasm/attention/ruvector_attention_wasm.d.ts +334 -0
- package/dist/wasm/attention/ruvector_attention_wasm.js +1470 -0
- package/dist/wasm/attention/ruvector_attention_wasm_bg.wasm +0 -0
- package/dist/wasm/attention/ruvector_attention_wasm_bg.wasm.d.ts +71 -0
- package/dist/wasm/package.json +24 -0
- package/dist/wasm/rvlite.d.ts +276 -0
- package/dist/wasm/rvlite.js +1504 -0
- package/dist/wasm/rvlite_bg.wasm +0 -0
- package/dist/wasm/rvlite_bg.wasm.d.ts +56 -0
- package/dist/wasm/sona/LICENSE-APACHE +103 -0
- package/dist/wasm/sona/LICENSE-MIT +21 -0
- package/dist/wasm/sona/README.md +1513 -0
- package/dist/wasm/sona/package.json +36 -0
- package/dist/wasm/sona/ruvector_sona.d.ts +513 -0
- package/dist/wasm/sona/ruvector_sona.js +1286 -0
- package/dist/wasm/sona/ruvector_sona_bg.wasm +0 -0
- package/dist/wasm/sona/ruvector_sona_bg.wasm.d.ts +53 -0
- package/dist/wasm/sona/sona.d.ts +281 -0
- package/dist/wasm/sona/sona.js +685 -0
- package/dist/wasm/sona/sona_bg.wasm +0 -0
- package/dist/wasm/sona/sona_bg.wasm.d.ts +26 -0
- package/package.json +81 -0
|
Binary file
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
export const memory: WebAssembly.Memory;
|
|
4
|
+
export const __wbg_wasmadam_free: (a: number, b: number) => void;
|
|
5
|
+
export const __wbg_wasmadamw_free: (a: number, b: number) => void;
|
|
6
|
+
export const __wbg_wasmflashattention_free: (a: number, b: number) => void;
|
|
7
|
+
export const __wbg_wasmhyperbolicattention_free: (a: number, b: number) => void;
|
|
8
|
+
export const __wbg_wasminfonceloss_free: (a: number, b: number) => void;
|
|
9
|
+
export const __wbg_wasmlinearattention_free: (a: number, b: number) => void;
|
|
10
|
+
export const __wbg_wasmmoeattention_free: (a: number, b: number) => void;
|
|
11
|
+
export const __wbg_wasmmultiheadattention_free: (a: number, b: number) => void;
|
|
12
|
+
export const __wbg_wasmsgd_free: (a: number, b: number) => void;
|
|
13
|
+
export const attention_weights: (a: number, b: number, c: number, d: number) => void;
|
|
14
|
+
export const available_mechanisms: () => number;
|
|
15
|
+
export const batch_normalize: (a: number, b: number, c: number) => void;
|
|
16
|
+
export const cosine_similarity: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
17
|
+
export const l2_norm: (a: number, b: number) => number;
|
|
18
|
+
export const log: (a: number, b: number) => void;
|
|
19
|
+
export const log_error: (a: number, b: number) => void;
|
|
20
|
+
export const normalize: (a: number, b: number, c: number, d: number) => void;
|
|
21
|
+
export const pairwise_distances: (a: number, b: number) => void;
|
|
22
|
+
export const random_orthogonal_matrix: (a: number, b: number) => void;
|
|
23
|
+
export const scaled_dot_attention: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
24
|
+
export const softmax: (a: number, b: number, c: number) => void;
|
|
25
|
+
export const version: (a: number) => void;
|
|
26
|
+
export const wasmadam_learning_rate: (a: number) => number;
|
|
27
|
+
export const wasmadam_new: (a: number, b: number) => number;
|
|
28
|
+
export const wasmadam_reset: (a: number) => void;
|
|
29
|
+
export const wasmadam_set_learning_rate: (a: number, b: number) => void;
|
|
30
|
+
export const wasmadam_step: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
31
|
+
export const wasmadamw_new: (a: number, b: number, c: number) => number;
|
|
32
|
+
export const wasmadamw_reset: (a: number) => void;
|
|
33
|
+
export const wasmadamw_step: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
34
|
+
export const wasmadamw_weight_decay: (a: number) => number;
|
|
35
|
+
export const wasmflashattention_compute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
36
|
+
export const wasmflashattention_new: (a: number, b: number) => number;
|
|
37
|
+
export const wasmhyperbolicattention_compute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
38
|
+
export const wasmhyperbolicattention_curvature: (a: number) => number;
|
|
39
|
+
export const wasmhyperbolicattention_new: (a: number, b: number) => number;
|
|
40
|
+
export const wasminfonceloss_compute: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
41
|
+
export const wasminfonceloss_new: (a: number) => number;
|
|
42
|
+
export const wasmlinearattention_compute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
43
|
+
export const wasmlinearattention_new: (a: number, b: number) => number;
|
|
44
|
+
export const wasmlocalglobalattention_compute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
45
|
+
export const wasmlocalglobalattention_new: (a: number, b: number, c: number) => number;
|
|
46
|
+
export const wasmlrscheduler_get_lr: (a: number) => number;
|
|
47
|
+
export const wasmlrscheduler_new: (a: number, b: number, c: number) => number;
|
|
48
|
+
export const wasmlrscheduler_reset: (a: number) => void;
|
|
49
|
+
export const wasmlrscheduler_step: (a: number) => void;
|
|
50
|
+
export const wasmmoeattention_compute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
51
|
+
export const wasmmoeattention_new: (a: number, b: number, c: number) => number;
|
|
52
|
+
export const wasmmultiheadattention_compute: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
53
|
+
export const wasmmultiheadattention_dim: (a: number) => number;
|
|
54
|
+
export const wasmmultiheadattention_new: (a: number, b: number, c: number) => void;
|
|
55
|
+
export const wasmmultiheadattention_num_heads: (a: number) => number;
|
|
56
|
+
export const wasmsgd_learning_rate: (a: number) => number;
|
|
57
|
+
export const wasmsgd_new: (a: number, b: number, c: number) => number;
|
|
58
|
+
export const wasmsgd_reset: (a: number) => void;
|
|
59
|
+
export const wasmsgd_set_learning_rate: (a: number, b: number) => void;
|
|
60
|
+
export const wasmsgd_step: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
61
|
+
export const init: () => void;
|
|
62
|
+
export const wasmadamw_set_learning_rate: (a: number, b: number) => void;
|
|
63
|
+
export const wasmadamw_learning_rate: (a: number) => number;
|
|
64
|
+
export const __wbg_wasmlocalglobalattention_free: (a: number, b: number) => void;
|
|
65
|
+
export const __wbg_wasmlrscheduler_free: (a: number, b: number) => void;
|
|
66
|
+
export const __wbindgen_export: (a: number, b: number) => number;
|
|
67
|
+
export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
68
|
+
export const __wbindgen_export3: (a: number) => void;
|
|
69
|
+
export const __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
70
|
+
export const __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
71
|
+
export const __wbindgen_start: () => void;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "rvlite",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"collaborators": [
|
|
5
|
+
"RuVector Contributors"
|
|
6
|
+
],
|
|
7
|
+
"description": "Standalone vector database with SQL, SPARQL, and Cypher - powered by RuVector WASM",
|
|
8
|
+
"version": "0.1.0",
|
|
9
|
+
"license": "MIT OR Apache-2.0",
|
|
10
|
+
"repository": {
|
|
11
|
+
"type": "git",
|
|
12
|
+
"url": "https://github.com/ruvnet/ruvector"
|
|
13
|
+
},
|
|
14
|
+
"files": [
|
|
15
|
+
"rvlite_bg.wasm",
|
|
16
|
+
"rvlite.js",
|
|
17
|
+
"rvlite.d.ts"
|
|
18
|
+
],
|
|
19
|
+
"main": "rvlite.js",
|
|
20
|
+
"types": "rvlite.d.ts",
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"./snippets/*"
|
|
23
|
+
]
|
|
24
|
+
}
|
|
@@ -0,0 +1,276 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
|
|
4
|
+
export class CypherEngine {
|
|
5
|
+
free(): void;
|
|
6
|
+
[Symbol.dispose](): void;
|
|
7
|
+
/**
|
|
8
|
+
* Create a new Cypher engine with empty graph
|
|
9
|
+
*/
|
|
10
|
+
constructor();
|
|
11
|
+
/**
|
|
12
|
+
* Clear the graph
|
|
13
|
+
*/
|
|
14
|
+
clear(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Get graph statistics
|
|
17
|
+
*/
|
|
18
|
+
stats(): any;
|
|
19
|
+
/**
|
|
20
|
+
* Execute a Cypher query and return JSON results
|
|
21
|
+
*/
|
|
22
|
+
execute(query: string): any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export class RvLite {
|
|
26
|
+
free(): void;
|
|
27
|
+
[Symbol.dispose](): void;
|
|
28
|
+
/**
|
|
29
|
+
* Add an RDF triple
|
|
30
|
+
*
|
|
31
|
+
* # Arguments
|
|
32
|
+
* * `subject` - Subject IRI or blank node (e.g., "<http://example.org/s>" or "_:b1")
|
|
33
|
+
* * `predicate` - Predicate IRI (e.g., "<http://example.org/p>")
|
|
34
|
+
* * `object` - Object IRI, blank node, or literal (e.g., "<http://example.org/o>" or '"value"')
|
|
35
|
+
*/
|
|
36
|
+
add_triple(subject: string, predicate: string, object: string): void;
|
|
37
|
+
/**
|
|
38
|
+
* Get configuration
|
|
39
|
+
*/
|
|
40
|
+
get_config(): any;
|
|
41
|
+
/**
|
|
42
|
+
* Export database state as JSON (for manual backup)
|
|
43
|
+
*/
|
|
44
|
+
export_json(): any;
|
|
45
|
+
/**
|
|
46
|
+
* Get version string
|
|
47
|
+
*/
|
|
48
|
+
get_version(): string;
|
|
49
|
+
/**
|
|
50
|
+
* Import database state from JSON
|
|
51
|
+
*/
|
|
52
|
+
import_json(json: any): void;
|
|
53
|
+
/**
|
|
54
|
+
* Clear the Cypher graph
|
|
55
|
+
*/
|
|
56
|
+
cypher_clear(): void;
|
|
57
|
+
/**
|
|
58
|
+
* Get Cypher graph statistics
|
|
59
|
+
*/
|
|
60
|
+
cypher_stats(): any;
|
|
61
|
+
/**
|
|
62
|
+
* Get enabled features
|
|
63
|
+
*/
|
|
64
|
+
get_features(): any;
|
|
65
|
+
/**
|
|
66
|
+
* Initialize IndexedDB storage for persistence
|
|
67
|
+
* Must be called before save() or load()
|
|
68
|
+
*/
|
|
69
|
+
init_storage(): Promise<any>;
|
|
70
|
+
/**
|
|
71
|
+
* Get the number of triples in the store
|
|
72
|
+
*/
|
|
73
|
+
triple_count(): number;
|
|
74
|
+
/**
|
|
75
|
+
* Clear saved state from IndexedDB
|
|
76
|
+
*/
|
|
77
|
+
static clear_storage(): Promise<any>;
|
|
78
|
+
/**
|
|
79
|
+
* Clear all triples
|
|
80
|
+
*/
|
|
81
|
+
clear_triples(): void;
|
|
82
|
+
/**
|
|
83
|
+
* Insert a vector with a specific ID
|
|
84
|
+
*/
|
|
85
|
+
insert_with_id(id: string, vector: Float32Array, metadata: any): void;
|
|
86
|
+
/**
|
|
87
|
+
* Check if saved state exists in IndexedDB
|
|
88
|
+
*/
|
|
89
|
+
static has_saved_state(): Promise<any>;
|
|
90
|
+
/**
|
|
91
|
+
* Search with metadata filter
|
|
92
|
+
*/
|
|
93
|
+
search_with_filter(query_vector: Float32Array, k: number, filter: any): any;
|
|
94
|
+
/**
|
|
95
|
+
* Check if IndexedDB is available in the browser
|
|
96
|
+
*/
|
|
97
|
+
static is_storage_available(): boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Get a vector by ID
|
|
100
|
+
*/
|
|
101
|
+
get(id: string): any;
|
|
102
|
+
/**
|
|
103
|
+
* Get the number of vectors in the database
|
|
104
|
+
*/
|
|
105
|
+
len(): number;
|
|
106
|
+
/**
|
|
107
|
+
* Create a new RvLite database
|
|
108
|
+
*/
|
|
109
|
+
constructor(config: RvLiteConfig);
|
|
110
|
+
/**
|
|
111
|
+
* Execute SQL query
|
|
112
|
+
*
|
|
113
|
+
* Supported syntax:
|
|
114
|
+
* - CREATE TABLE vectors (id TEXT PRIMARY KEY, vector VECTOR(384))
|
|
115
|
+
* - SELECT * FROM vectors WHERE id = 'x'
|
|
116
|
+
* - SELECT id, vector <-> '[...]' AS distance FROM vectors ORDER BY distance LIMIT 10
|
|
117
|
+
* - INSERT INTO vectors (id, vector) VALUES ('x', '[...]')
|
|
118
|
+
* - DELETE FROM vectors WHERE id = 'x'
|
|
119
|
+
*/
|
|
120
|
+
sql(query: string): any;
|
|
121
|
+
/**
|
|
122
|
+
* Load database from IndexedDB
|
|
123
|
+
* Returns a Promise<RvLite> with the restored database
|
|
124
|
+
*/
|
|
125
|
+
static load(config: RvLiteConfig): Promise<any>;
|
|
126
|
+
/**
|
|
127
|
+
* Save database state to IndexedDB
|
|
128
|
+
* Returns a Promise that resolves when save is complete
|
|
129
|
+
*/
|
|
130
|
+
save(): Promise<any>;
|
|
131
|
+
/**
|
|
132
|
+
* Execute Cypher query
|
|
133
|
+
*
|
|
134
|
+
* Supported operations:
|
|
135
|
+
* - CREATE (n:Label {prop: value})
|
|
136
|
+
* - MATCH (n:Label) WHERE n.prop = value RETURN n
|
|
137
|
+
* - CREATE (a)-[r:REL]->(b)
|
|
138
|
+
* - DELETE n
|
|
139
|
+
*/
|
|
140
|
+
cypher(query: string): any;
|
|
141
|
+
/**
|
|
142
|
+
* Delete a vector by ID
|
|
143
|
+
*/
|
|
144
|
+
delete(id: string): boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Insert a vector with optional metadata
|
|
147
|
+
* Returns the vector ID
|
|
148
|
+
*/
|
|
149
|
+
insert(vector: Float32Array, metadata: any): string;
|
|
150
|
+
/**
|
|
151
|
+
* Search for similar vectors
|
|
152
|
+
*/
|
|
153
|
+
search(query_vector: Float32Array, k: number): any;
|
|
154
|
+
/**
|
|
155
|
+
* Execute SPARQL query
|
|
156
|
+
*
|
|
157
|
+
* Supported operations:
|
|
158
|
+
* - SELECT ?s ?p ?o WHERE { ?s ?p ?o }
|
|
159
|
+
* - SELECT ?s WHERE { ?s <predicate> ?o }
|
|
160
|
+
* - ASK { ?s ?p ?o }
|
|
161
|
+
*/
|
|
162
|
+
sparql(query: string): any;
|
|
163
|
+
/**
|
|
164
|
+
* Create with default configuration (384 dimensions, cosine similarity)
|
|
165
|
+
*/
|
|
166
|
+
static default(): RvLite;
|
|
167
|
+
/**
|
|
168
|
+
* Check if database is empty
|
|
169
|
+
*/
|
|
170
|
+
is_empty(): boolean;
|
|
171
|
+
/**
|
|
172
|
+
* Check if database is ready
|
|
173
|
+
*/
|
|
174
|
+
is_ready(): boolean;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export class RvLiteConfig {
|
|
178
|
+
free(): void;
|
|
179
|
+
[Symbol.dispose](): void;
|
|
180
|
+
/**
|
|
181
|
+
* Get dimensions
|
|
182
|
+
*/
|
|
183
|
+
get_dimensions(): number;
|
|
184
|
+
/**
|
|
185
|
+
* Get distance metric name
|
|
186
|
+
*/
|
|
187
|
+
get_distance_metric(): string;
|
|
188
|
+
/**
|
|
189
|
+
* Set distance metric (euclidean, cosine, dotproduct, manhattan)
|
|
190
|
+
*/
|
|
191
|
+
with_distance_metric(metric: string): RvLiteConfig;
|
|
192
|
+
constructor(dimensions: number);
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export function init(): void;
|
|
196
|
+
|
|
197
|
+
export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
|
|
198
|
+
|
|
199
|
+
export interface InitOutput {
|
|
200
|
+
readonly memory: WebAssembly.Memory;
|
|
201
|
+
readonly __wbg_cypherengine_free: (a: number, b: number) => void;
|
|
202
|
+
readonly __wbg_rvlite_free: (a: number, b: number) => void;
|
|
203
|
+
readonly __wbg_rvliteconfig_free: (a: number, b: number) => void;
|
|
204
|
+
readonly cypherengine_clear: (a: number) => void;
|
|
205
|
+
readonly cypherengine_execute: (a: number, b: number, c: number, d: number) => void;
|
|
206
|
+
readonly cypherengine_new: () => number;
|
|
207
|
+
readonly cypherengine_stats: (a: number, b: number) => void;
|
|
208
|
+
readonly rvlite_add_triple: (a: number, b: number, c: number, d: number, e: number, f: number, g: number, h: number) => void;
|
|
209
|
+
readonly rvlite_clear_triples: (a: number) => void;
|
|
210
|
+
readonly rvlite_cypher: (a: number, b: number, c: number, d: number) => void;
|
|
211
|
+
readonly rvlite_cypher_clear: (a: number) => void;
|
|
212
|
+
readonly rvlite_cypher_stats: (a: number, b: number) => void;
|
|
213
|
+
readonly rvlite_default: (a: number) => void;
|
|
214
|
+
readonly rvlite_delete: (a: number, b: number, c: number, d: number) => void;
|
|
215
|
+
readonly rvlite_export_json: (a: number, b: number) => void;
|
|
216
|
+
readonly rvlite_get: (a: number, b: number, c: number, d: number) => void;
|
|
217
|
+
readonly rvlite_get_config: (a: number, b: number) => void;
|
|
218
|
+
readonly rvlite_get_features: (a: number, b: number) => void;
|
|
219
|
+
readonly rvlite_get_version: (a: number, b: number) => void;
|
|
220
|
+
readonly rvlite_import_json: (a: number, b: number, c: number) => void;
|
|
221
|
+
readonly rvlite_init_storage: (a: number) => number;
|
|
222
|
+
readonly rvlite_insert: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
223
|
+
readonly rvlite_insert_with_id: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
|
|
224
|
+
readonly rvlite_is_empty: (a: number, b: number) => void;
|
|
225
|
+
readonly rvlite_is_ready: (a: number) => number;
|
|
226
|
+
readonly rvlite_is_storage_available: () => number;
|
|
227
|
+
readonly rvlite_len: (a: number, b: number) => void;
|
|
228
|
+
readonly rvlite_load: (a: number) => number;
|
|
229
|
+
readonly rvlite_new: (a: number, b: number) => void;
|
|
230
|
+
readonly rvlite_save: (a: number) => number;
|
|
231
|
+
readonly rvlite_search: (a: number, b: number, c: number, d: number, e: number) => void;
|
|
232
|
+
readonly rvlite_search_with_filter: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
|
|
233
|
+
readonly rvlite_sparql: (a: number, b: number, c: number, d: number) => void;
|
|
234
|
+
readonly rvlite_sql: (a: number, b: number, c: number, d: number) => void;
|
|
235
|
+
readonly rvlite_triple_count: (a: number) => number;
|
|
236
|
+
readonly rvliteconfig_get_dimensions: (a: number) => number;
|
|
237
|
+
readonly rvliteconfig_get_distance_metric: (a: number, b: number) => void;
|
|
238
|
+
readonly rvliteconfig_new: (a: number) => number;
|
|
239
|
+
readonly rvliteconfig_with_distance_metric: (a: number, b: number, c: number) => number;
|
|
240
|
+
readonly init: () => void;
|
|
241
|
+
readonly rvlite_clear_storage: () => number;
|
|
242
|
+
readonly rvlite_has_saved_state: () => number;
|
|
243
|
+
readonly __wasm_bindgen_func_elem_181: (a: number, b: number, c: number) => void;
|
|
244
|
+
readonly __wasm_bindgen_func_elem_180: (a: number, b: number) => void;
|
|
245
|
+
readonly __wasm_bindgen_func_elem_1423: (a: number, b: number, c: number) => void;
|
|
246
|
+
readonly __wasm_bindgen_func_elem_1422: (a: number, b: number) => void;
|
|
247
|
+
readonly __wasm_bindgen_func_elem_1469: (a: number, b: number, c: number, d: number) => void;
|
|
248
|
+
readonly __wbindgen_export: (a: number, b: number) => number;
|
|
249
|
+
readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
|
|
250
|
+
readonly __wbindgen_export3: (a: number) => void;
|
|
251
|
+
readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
|
|
252
|
+
readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
|
|
253
|
+
readonly __wbindgen_start: () => void;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
export type SyncInitInput = BufferSource | WebAssembly.Module;
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* Instantiates the given `module`, which can either be bytes or
|
|
260
|
+
* a precompiled `WebAssembly.Module`.
|
|
261
|
+
*
|
|
262
|
+
* @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
|
|
263
|
+
*
|
|
264
|
+
* @returns {InitOutput}
|
|
265
|
+
*/
|
|
266
|
+
export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
|
|
267
|
+
|
|
268
|
+
/**
|
|
269
|
+
* If `module_or_path` is {RequestInfo} or {URL}, makes a request and
|
|
270
|
+
* for everything else, calls `WebAssembly.instantiate` directly.
|
|
271
|
+
*
|
|
272
|
+
* @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
|
|
273
|
+
*
|
|
274
|
+
* @returns {Promise<InitOutput>}
|
|
275
|
+
*/
|
|
276
|
+
export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;
|