@premai/api-sdk 1.0.42 → 1.0.43

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/dist/bare.d.ts ADDED
@@ -0,0 +1,31 @@
1
+ import "bare-process/global";
2
+ import "bare-abort-controller/global";
3
+ import "bare-buffer/global";
4
+ import "bare-encoding/global";
5
+ import "bare-crypto/global";
6
+ import "bare-url/global";
7
+ import "bare-events/global";
8
+ import "bare-form-data/global";
9
+ import "bare-fetch/global";
10
+ export interface BareWasm3Options {
11
+ /**
12
+ * Called after each WASM export returns. Used inside BareKit worklets to
13
+ * unblock the IPC event loop after synchronous wasm3 execution.
14
+ * Typically: `() => pipe.write(Buffer.from('\n'))`.
15
+ */
16
+ ioNudge?: () => void;
17
+ /**
18
+ * Absolute on-disk path to the WASM file. Only needed when running
19
+ * inside a bundled environment (BareKit / bare-pack) where the WASM
20
+ * binary's `__dirname` resolves to a virtual path.
21
+ */
22
+ wasmPath?: string;
23
+ }
24
+ /**
25
+ * Install the `WebAssembly` polyfill.
26
+ * Required inside BareKit worklets on iOS / Android where the platform's
27
+ * native WebAssembly is unavailable or JIT-locked
28
+ */
29
+ export declare function installBareWasm3(options?: BareWasm3Options): Promise<void>;
30
+ export * from "./core";
31
+ export { default } from "./core";