@pandacss/compiler-wasm 2.0.0-beta.0

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.
Binary file
@@ -0,0 +1,68 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ export const memory: WebAssembly.Memory;
4
+ export const __wbg_wasmcompiler_free: (a: number, b: number) => void;
5
+ export const __wbg_wasmextractor_free: (a: number, b: number) => void;
6
+ export const __wbg_wasmfilesystem_free: (a: number, b: number) => void;
7
+ export const wasmcompiler_applyBuildInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
8
+ export const wasmcompiler_atoms: (a: number, b: number) => void;
9
+ export const wasmcompiler_buildInfoSchemaVersion: (a: number) => number;
10
+ export const wasmcompiler_clear: (a: number) => void;
11
+ export const wasmcompiler_compile: (a: number, b: number, c: number) => void;
12
+ export const wasmcompiler_config: (a: number, b: number) => void;
13
+ export const wasmcompiler_configFingerprint: (a: number, b: number) => void;
14
+ export const wasmcompiler_diagnostics: (a: number, b: number) => void;
15
+ export const wasmcompiler_dirname: (a: number, b: number, c: number, d: number) => void;
16
+ export const wasmcompiler_encodedRecipes: (a: number, b: number) => void;
17
+ export const wasmcompiler_extractFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
18
+ export const wasmcompiler_fileManifest: (a: number, b: number) => void;
19
+ export const wasmcompiler_fromConfig: (a: number, b: number, c: number, d: number) => void;
20
+ export const wasmcompiler_generateAffectedArtifacts: (a: number, b: number, c: number, d: number) => void;
21
+ export const wasmcompiler_generateArtifact: (a: number, b: number, c: number, d: number, e: number) => void;
22
+ export const wasmcompiler_generateArtifacts: (a: number, b: number, c: number) => void;
23
+ export const wasmcompiler_getFile: (a: number, b: number, c: number, d: number) => void;
24
+ export const wasmcompiler_hasLayerDeclaration: (a: number, b: number, c: number) => number;
25
+ export const wasmcompiler_inspectFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
26
+ export const wasmcompiler_isEmpty: (a: number) => number;
27
+ export const wasmcompiler_isSourceFile: (a: number, b: number, c: number) => number;
28
+ export const wasmcompiler_joinPath: (a: number, b: number, c: number) => void;
29
+ export const wasmcompiler_layerCss: (a: number, b: number, c: number, d: number) => void;
30
+ export const wasmcompiler_layers: (a: number, b: number) => void;
31
+ export const wasmcompiler_parseFile: (a: number, b: number, c: number, d: number) => void;
32
+ export const wasmcompiler_parseFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
33
+ export const wasmcompiler_parseFiles: (a: number, b: number, c: number) => void;
34
+ export const wasmcompiler_realpath: (a: number, b: number, c: number, d: number) => void;
35
+ export const wasmcompiler_recipes: (a: number, b: number) => void;
36
+ export const wasmcompiler_refreshFile: (a: number, b: number, c: number, d: number) => void;
37
+ export const wasmcompiler_refreshFileSource: (a: number, b: number, c: number, d: number, e: number) => number;
38
+ export const wasmcompiler_registerPatternTransform: (a: number, b: number, c: number, d: number) => void;
39
+ export const wasmcompiler_registerSourceTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
40
+ export const wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
41
+ export const wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
42
+ export const wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
43
+ export const wasmcompiler_scan: (a: number, b: number, c: number) => void;
44
+ export const wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
45
+ export const wasmcompiler_slotRecipes: (a: number, b: number) => void;
46
+ export const wasmcompiler_sources: (a: number, b: number) => void;
47
+ export const wasmcompiler_spec: (a: number, b: number) => void;
48
+ export const wasmcompiler_splitCss: (a: number, b: number) => void;
49
+ export const wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
50
+ export const wasmcompiler_summary: (a: number, b: number) => void;
51
+ export const wasmcompiler_token_dictionary: (a: number, b: number) => void;
52
+ export const wasmcompiler_writeArtifacts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
53
+ export const wasmcompiler_writeCss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
54
+ export const wasmcompiler_writeSplitCss: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
55
+ export const wasmextractor_new: (a: number, b: number, c: number) => void;
56
+ export const wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
57
+ export const wasmfilesystem_addFile: (a: number, b: number, c: number, d: number, e: number) => void;
58
+ export const wasmfilesystem_exists: (a: number, b: number, c: number) => number;
59
+ export const wasmfilesystem_fileCount: (a: number) => number;
60
+ export const wasmfilesystem_new: () => number;
61
+ export const wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
62
+ export const wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
63
+ export const installPanicHook: () => void;
64
+ export const __wbindgen_export: (a: number, b: number) => number;
65
+ export const __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
66
+ export const __wbindgen_export3: (a: number) => void;
67
+ export const __wbindgen_export4: (a: number, b: number, c: number) => void;
68
+ export const __wbindgen_add_to_stack_pointer: (a: number) => number;
@@ -0,0 +1,3 @@
1
+ {
2
+ "type": "commonjs"
3
+ }
@@ -0,0 +1,474 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+
4
+ /**
5
+ * JS-facing project handle. Constructed once per session with a
6
+ * [`WasmFileSystem`] (whose contents the cross-file resolver reads),
7
+ * plus a resolved Panda config snapshot.
8
+ *
9
+ * ```js
10
+ * const fs = new WasmFileSystem()
11
+ * fs.addFile('/proj/tokens.ts', "export const brand = '#ef4444';")
12
+ * fs.addFile('/proj/main.tsx', "import { brand } from './tokens'\ncss({ color: brand })")
13
+ * const compiler = WasmCompiler.fromConfig(fs, config)
14
+ * project.parseFile('/proj/main.tsx', fs.readFile('/proj/main.tsx'))
15
+ * const atoms = project.atoms()
16
+ * ```
17
+ */
18
+ export class WasmCompiler {
19
+ private constructor();
20
+ free(): void;
21
+ [Symbol.dispose](): void;
22
+ /**
23
+ * Hydrate an external build info into this project (additive), optionally
24
+ * restricted to imported modules (tree-shaking). Returns `false` on a
25
+ * schema-version mismatch.
26
+ *
27
+ * # Errors
28
+ * Returns a JS error if `build_info` isn't a valid build-info document.
29
+ */
30
+ applyBuildInfo(name: string, build_info: any, only: any): boolean;
31
+ /**
32
+ * Deduplicated atoms across every currently-known file, sorted by
33
+ * `(prop, conditions, value)` for stable iteration.
34
+ *
35
+ * # Errors
36
+ * Returns a JS error if serializing the atom array fails.
37
+ */
38
+ atoms(): any;
39
+ /**
40
+ * The build-info wire-format version this binding reads/writes.
41
+ */
42
+ buildInfoSchemaVersion(): number;
43
+ /**
44
+ * Drop every path's state. Keeps the config-derived extractor,
45
+ * token dictionary, and cross-file resolver intact.
46
+ */
47
+ clear(): void;
48
+ /**
49
+ * Compile to CSS. Mirrors the NAPI `Project.compile()`.
50
+ *
51
+ * # Errors
52
+ * Returns a JS error if serializing fails.
53
+ */
54
+ compile(options?: any | null): any;
55
+ /**
56
+ * Return the serialized config snapshot this project was constructed
57
+ * with.
58
+ *
59
+ * # Errors
60
+ * Returns a JS error if serializing fails.
61
+ */
62
+ config(): any;
63
+ /**
64
+ * Engine-owned fingerprint of the resolved config's output-affecting fields,
65
+ * stamped into build info as `configFingerprint`.
66
+ */
67
+ configFingerprint(): string;
68
+ /**
69
+ * Config validation diagnostics from construction.
70
+ *
71
+ * # Errors
72
+ * Returns a JS error if serializing fails.
73
+ */
74
+ diagnostics(): any;
75
+ dirname(path: string): string;
76
+ /**
77
+ * Encoded config recipe styles, separate from atomic utility atoms.
78
+ *
79
+ * # Errors
80
+ * Returns a JS error if serializing fails.
81
+ */
82
+ encodedRecipes(): any;
83
+ /**
84
+ * Stateless single-file extraction — raw `{ calls, jsx, diagnostics }`,
85
+ * using the project's configured matchers + token dictionary. Unlike
86
+ * `parseFile`, it registers nothing; it's the read-only peek companion.
87
+ *
88
+ * # Errors
89
+ * Returns a JS error string when serializing the result fails.
90
+ */
91
+ extractFileSource(path: string, source: string): any;
92
+ /**
93
+ * `(path, hex source_hash)` for every known file, sorted by path.
94
+ *
95
+ * # Errors
96
+ * Returns a JS error if serializing fails.
97
+ */
98
+ fileManifest(): any;
99
+ /**
100
+ * Construct a compiler from the resolved, JSON-safe Panda config snapshot.
101
+ *
102
+ * # Errors
103
+ * Returns a JS error when `config` doesn't deserialize into JSON.
104
+ */
105
+ static fromConfig(fs: WasmFileSystem, config: any, options: any): WasmCompiler;
106
+ /**
107
+ * Generate artifacts affected by the provided config dependency names.
108
+ *
109
+ * # Errors
110
+ * Returns a JS error if dependencies/options are invalid or serializing fails.
111
+ */
112
+ generateAffectedArtifacts(dependencies: any, options: any): any;
113
+ /**
114
+ * Generate one codegen artifact by id.
115
+ *
116
+ * # Errors
117
+ * Returns a JS error if the id/options are invalid or serializing fails.
118
+ */
119
+ generateArtifact(id: string, options: any): any;
120
+ /**
121
+ * Generate every codegen artifact from the resolved project state.
122
+ *
123
+ * # Errors
124
+ * Returns a JS error if options are invalid or serializing fails.
125
+ */
126
+ generateArtifacts(options: any): any;
127
+ /**
128
+ * Per-file view; returns `null` when `path` isn't known.
129
+ *
130
+ * # Errors
131
+ * Returns a JS error if serializing fails.
132
+ */
133
+ getFile(path: string): any;
134
+ /**
135
+ * Whether `css` declares Panda's cascade layers (`@layer reset, base, …;`),
136
+ * marking it as the stylesheet root to inject the compiled CSS into.
137
+ */
138
+ hasLayerDeclaration(css: string): boolean;
139
+ /**
140
+ * Stateless source inspection for tooling (reporting, lint, IDE). Returns
141
+ * classified Panda usage sites plus file-local extraction diagnostics.
142
+ *
143
+ * # Errors
144
+ * Returns a JS error if serialization fails.
145
+ */
146
+ inspectFileSource(path: string, source: string): any;
147
+ /**
148
+ * Returns `true` when the project has no files and no accumulated output.
149
+ */
150
+ isEmpty(): boolean;
151
+ /**
152
+ * Whether `path` is a source file the project extracts from — its
153
+ * `cwd`-relative form matches the configured `include`/`exclude` globs.
154
+ */
155
+ isSourceFile(path: string): boolean;
156
+ joinPath(parts: any): string;
157
+ /**
158
+ * CSS for the named cascade layers, concatenated in order. Sliced in Rust
159
+ * (byte offsets stay valid); unknown layer names are skipped.
160
+ */
161
+ layerCss(layers: string[]): string;
162
+ /**
163
+ * The resolved cascade-layer names (config overrides merged over defaults).
164
+ *
165
+ * # Errors
166
+ * Returns a JS error if serializing fails.
167
+ */
168
+ layers(): any;
169
+ /**
170
+ * Read a source file from the in-memory filesystem and parse it.
171
+ *
172
+ * # Errors
173
+ * Returns a JS error if serializing the per-call report fails.
174
+ */
175
+ parseFile(path: string): any;
176
+ /**
177
+ * Extract + encode provided source text. Replaces any prior contribution
178
+ * from `path`.
179
+ *
180
+ * # Errors
181
+ * Returns a JS error if serializing the per-call report fails.
182
+ */
183
+ parseFileSource(path: string, source: string): any;
184
+ /**
185
+ * Read + parse source paths returned from `scan()`. Returns one report per
186
+ * successfully parsed path.
187
+ *
188
+ * # Errors
189
+ * Returns a JS error when `paths` is malformed or serializing the report fails.
190
+ */
191
+ parseFiles(paths: any): any;
192
+ /**
193
+ * Real on-disk path (symlinks followed) from the in-memory filesystem, so two
194
+ * paths to the same file compare equal. Returns the input when unresolved.
195
+ */
196
+ realpath(path: string): string;
197
+ /**
198
+ * Every `cva()` recipe entry in `(file, span_start)` order.
199
+ *
200
+ * # Errors
201
+ * Returns a JS error if serializing fails.
202
+ */
203
+ recipes(): any;
204
+ /**
205
+ * Re-read `path` from the in-memory filesystem and re-parse it only if
206
+ * already known. Returns `true` when the file was present and got
207
+ * re-parsed.
208
+ */
209
+ refreshFile(path: string): boolean;
210
+ /**
211
+ * Re-parse provided source text only if `path` is already known.
212
+ */
213
+ refreshFileSource(path: string, source: string): boolean;
214
+ /**
215
+ * Register a JS-backed pattern transform callback. The wrapper package
216
+ * installs callbacks referenced by the serialized config snapshot.
217
+ */
218
+ registerPatternTransform(id: string, callback: Function): void;
219
+ /**
220
+ * Register a JS-backed `parser:before` source transform with a Rust-side
221
+ * filter. The filter is evaluated before calling into JS.
222
+ */
223
+ registerSourceTransform(id: string, filter: any, callback: Function): void;
224
+ /**
225
+ * Register a JS-backed utility transform callback. The JS package wraps
226
+ * the user callback so Rust only has to pass the raw value.
227
+ */
228
+ registerUtilityTransform(id: string, callback: Function): void;
229
+ /**
230
+ * Drop a file's contribution. Returns `true` if the path was known.
231
+ */
232
+ removeFile(path: string): boolean;
233
+ resolvePath(path: string, cwd?: string | null): string;
234
+ /**
235
+ * Source paths matching the config's `include`/`exclude` (overridable via
236
+ * `options`) from the in-memory filesystem. For discovery and the host's
237
+ * watch list.
238
+ *
239
+ * # Errors
240
+ * Returns a JS error when `options` is malformed or the scan fails.
241
+ */
242
+ scan(options: any): any;
243
+ /**
244
+ * Serialize the project's encoded atoms + recipes into a portable build info
245
+ * (the `panda buildinfo` producer). `configFingerprint` is engine-owned; the
246
+ * caller supplies only the published `panda` peer range.
247
+ *
248
+ * # Errors
249
+ * Returns a JS error if serializing the build info fails.
250
+ */
251
+ serializeBuildInfo(panda: string): any;
252
+ /**
253
+ * Every `sva()` slot-recipe entry.
254
+ *
255
+ * # Errors
256
+ * Returns a JS error if serializing fails.
257
+ */
258
+ slotRecipes(): any;
259
+ /**
260
+ * Source globs + their static base dirs (for the host watcher).
261
+ *
262
+ * # Errors
263
+ * Returns a JS error if serialization fails.
264
+ */
265
+ sources(): any;
266
+ /**
267
+ * Tooling introspection snapshot (read once, index on the host).
268
+ *
269
+ * # Errors
270
+ * Returns a JS error if the snapshot fails to serialize.
271
+ */
272
+ spec(): any;
273
+ /**
274
+ * Split the stylesheet into per-file outputs (one per layer + per recipe,
275
+ * plus `recipes.css` / `styles.css` index files) for `--splitting`.
276
+ *
277
+ * # Errors
278
+ * Returns a JS error if serializing fails.
279
+ */
280
+ splitCss(): any;
281
+ /**
282
+ * `staticCss.patterns` expansion as raw atoms, without compiling.
283
+ *
284
+ * # Errors
285
+ * Returns a JS error if serializing fails.
286
+ */
287
+ staticPatternAtoms(): any;
288
+ /**
289
+ * Aggregate counts.
290
+ *
291
+ * # Errors
292
+ * Returns a JS error if serializing fails.
293
+ */
294
+ summary(): any;
295
+ /**
296
+ * Rust-built token dictionary projected into the small JS interop shape.
297
+ */
298
+ token_dictionary(): any;
299
+ /**
300
+ * Generate artifacts and write them under `outdir` via the in-memory fs.
301
+ * Returns the written paths.
302
+ *
303
+ * # Errors
304
+ * Returns a JS error if a file fails to write or results fail to serialize.
305
+ */
306
+ writeArtifacts(outdir: string, cwd: string | null | undefined, options: any): any;
307
+ writeCss(outfile: string, cwd?: string | null, options?: any | null): any;
308
+ writeSplitCss(outdir: string, cwd?: string | null): any;
309
+ }
310
+
311
+ /**
312
+ * JS-facing extractor handle. Constructed once per session with a
313
+ * [`WasmFileSystem`] handle and a `MatchersInput`; the cross-file
314
+ * resolver is wired up automatically against the same FS.
315
+ *
316
+ * ```js
317
+ * const fs = new WasmFileSystem();
318
+ * fs.addFile('/src/code.tsx', '...');
319
+ * const ext = new WasmExtractor(fs, matchers);
320
+ * const result = ext.parseFile('/src/code.tsx', source);
321
+ * ```
322
+ */
323
+ export class WasmExtractor {
324
+ free(): void;
325
+ [Symbol.dispose](): void;
326
+ /**
327
+ * Construct from a JS matchers object (see `MatchersInput`).
328
+ *
329
+ * # Errors
330
+ * Returns a JS error string when `matchers` doesn't deserialize
331
+ * into a `MatchersInput` shape.
332
+ */
333
+ constructor(fs: WasmFileSystem, matchers: any);
334
+ /**
335
+ * Single-file extract. Returns the lean `ExtractUsage` shape as a
336
+ * plain JS object (`{ calls, jsx, diagnostics }`).
337
+ *
338
+ * # Errors
339
+ * Returns a JS error string when serializing the result to `JsValue`
340
+ * fails (effectively never — the shape is bounded JSON).
341
+ */
342
+ parseFile(path: string, source: string): any;
343
+ }
344
+
345
+ /**
346
+ * JS-facing handle over [`MemoryFileSystem`]. Cheap to clone — shares
347
+ * state via `Arc<RwLock>` internally — so the JS host can pass the same
348
+ * handle into multiple `WasmExtractor` instances and edits flow through
349
+ * to all consumers.
350
+ */
351
+ export class WasmFileSystem {
352
+ free(): void;
353
+ [Symbol.dispose](): void;
354
+ /**
355
+ * Write or overwrite a file. Parent dirs auto-register.
356
+ */
357
+ addFile(path: string, content: string): void;
358
+ /**
359
+ * `true` when `path` exists as file or directory.
360
+ */
361
+ exists(path: string): boolean;
362
+ /**
363
+ * Number of files stored. Convenience for diagnostics / tests.
364
+ */
365
+ fileCount(): number;
366
+ constructor();
367
+ /**
368
+ * Read a file. Returns `undefined` when missing.
369
+ */
370
+ readFile(path: string): string | undefined;
371
+ /**
372
+ * `true` when the file existed and was removed.
373
+ */
374
+ removeFile(path: string): boolean;
375
+ }
376
+
377
+ /**
378
+ * Install a panic hook so Rust panics surface as readable stack traces in
379
+ * the browser console. Idempotent — safe to call multiple times.
380
+ */
381
+ export function installPanicHook(): void;
382
+
383
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
384
+
385
+ export interface InitOutput {
386
+ readonly memory: WebAssembly.Memory;
387
+ readonly __wbg_wasmcompiler_free: (a: number, b: number) => void;
388
+ readonly __wbg_wasmextractor_free: (a: number, b: number) => void;
389
+ readonly __wbg_wasmfilesystem_free: (a: number, b: number) => void;
390
+ readonly wasmcompiler_applyBuildInfo: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
391
+ readonly wasmcompiler_atoms: (a: number, b: number) => void;
392
+ readonly wasmcompiler_buildInfoSchemaVersion: (a: number) => number;
393
+ readonly wasmcompiler_clear: (a: number) => void;
394
+ readonly wasmcompiler_compile: (a: number, b: number, c: number) => void;
395
+ readonly wasmcompiler_config: (a: number, b: number) => void;
396
+ readonly wasmcompiler_configFingerprint: (a: number, b: number) => void;
397
+ readonly wasmcompiler_diagnostics: (a: number, b: number) => void;
398
+ readonly wasmcompiler_dirname: (a: number, b: number, c: number, d: number) => void;
399
+ readonly wasmcompiler_encodedRecipes: (a: number, b: number) => void;
400
+ readonly wasmcompiler_extractFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
401
+ readonly wasmcompiler_fileManifest: (a: number, b: number) => void;
402
+ readonly wasmcompiler_fromConfig: (a: number, b: number, c: number, d: number) => void;
403
+ readonly wasmcompiler_generateAffectedArtifacts: (a: number, b: number, c: number, d: number) => void;
404
+ readonly wasmcompiler_generateArtifact: (a: number, b: number, c: number, d: number, e: number) => void;
405
+ readonly wasmcompiler_generateArtifacts: (a: number, b: number, c: number) => void;
406
+ readonly wasmcompiler_getFile: (a: number, b: number, c: number, d: number) => void;
407
+ readonly wasmcompiler_hasLayerDeclaration: (a: number, b: number, c: number) => number;
408
+ readonly wasmcompiler_inspectFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
409
+ readonly wasmcompiler_isEmpty: (a: number) => number;
410
+ readonly wasmcompiler_isSourceFile: (a: number, b: number, c: number) => number;
411
+ readonly wasmcompiler_joinPath: (a: number, b: number, c: number) => void;
412
+ readonly wasmcompiler_layerCss: (a: number, b: number, c: number, d: number) => void;
413
+ readonly wasmcompiler_layers: (a: number, b: number) => void;
414
+ readonly wasmcompiler_parseFile: (a: number, b: number, c: number, d: number) => void;
415
+ readonly wasmcompiler_parseFileSource: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
416
+ readonly wasmcompiler_parseFiles: (a: number, b: number, c: number) => void;
417
+ readonly wasmcompiler_realpath: (a: number, b: number, c: number, d: number) => void;
418
+ readonly wasmcompiler_recipes: (a: number, b: number) => void;
419
+ readonly wasmcompiler_refreshFile: (a: number, b: number, c: number, d: number) => void;
420
+ readonly wasmcompiler_refreshFileSource: (a: number, b: number, c: number, d: number, e: number) => number;
421
+ readonly wasmcompiler_registerPatternTransform: (a: number, b: number, c: number, d: number) => void;
422
+ readonly wasmcompiler_registerSourceTransform: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
423
+ readonly wasmcompiler_registerUtilityTransform: (a: number, b: number, c: number, d: number) => void;
424
+ readonly wasmcompiler_removeFile: (a: number, b: number, c: number) => number;
425
+ readonly wasmcompiler_resolvePath: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
426
+ readonly wasmcompiler_scan: (a: number, b: number, c: number) => void;
427
+ readonly wasmcompiler_serializeBuildInfo: (a: number, b: number, c: number, d: number) => void;
428
+ readonly wasmcompiler_slotRecipes: (a: number, b: number) => void;
429
+ readonly wasmcompiler_sources: (a: number, b: number) => void;
430
+ readonly wasmcompiler_spec: (a: number, b: number) => void;
431
+ readonly wasmcompiler_splitCss: (a: number, b: number) => void;
432
+ readonly wasmcompiler_staticPatternAtoms: (a: number, b: number) => void;
433
+ readonly wasmcompiler_summary: (a: number, b: number) => void;
434
+ readonly wasmcompiler_token_dictionary: (a: number, b: number) => void;
435
+ readonly wasmcompiler_writeArtifacts: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
436
+ readonly wasmcompiler_writeCss: (a: number, b: number, c: number, d: number, e: number, f: number, g: number) => void;
437
+ readonly wasmcompiler_writeSplitCss: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
438
+ readonly wasmextractor_new: (a: number, b: number, c: number) => void;
439
+ readonly wasmextractor_parseFile: (a: number, b: number, c: number, d: number, e: number, f: number) => void;
440
+ readonly wasmfilesystem_addFile: (a: number, b: number, c: number, d: number, e: number) => void;
441
+ readonly wasmfilesystem_exists: (a: number, b: number, c: number) => number;
442
+ readonly wasmfilesystem_fileCount: (a: number) => number;
443
+ readonly wasmfilesystem_new: () => number;
444
+ readonly wasmfilesystem_readFile: (a: number, b: number, c: number, d: number) => void;
445
+ readonly wasmfilesystem_removeFile: (a: number, b: number, c: number) => number;
446
+ readonly installPanicHook: () => void;
447
+ readonly __wbindgen_export: (a: number, b: number) => number;
448
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
449
+ readonly __wbindgen_export3: (a: number) => void;
450
+ readonly __wbindgen_export4: (a: number, b: number, c: number) => void;
451
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
452
+ }
453
+
454
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
455
+
456
+ /**
457
+ * Instantiates the given `module`, which can either be bytes or
458
+ * a precompiled `WebAssembly.Module`.
459
+ *
460
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
461
+ *
462
+ * @returns {InitOutput}
463
+ */
464
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
465
+
466
+ /**
467
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
468
+ * for everything else, calls `WebAssembly.instantiate` directly.
469
+ *
470
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
471
+ *
472
+ * @returns {Promise<InitOutput>}
473
+ */
474
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;