@k9o/kibo-react-native 0.0.0-stage → 0.1.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.
@@ -0,0 +1,105 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * The `ReadableStreamType` enum.
5
+ *
6
+ * *This API requires the following crate features to be activated: `ReadableStreamType`*
7
+ */
8
+
9
+ type ReadableStreamType = "bytes";
10
+
11
+ export class IntoUnderlyingByteSource {
12
+ private constructor();
13
+ free(): void;
14
+ [Symbol.dispose](): void;
15
+ cancel(): void;
16
+ pull(controller: ReadableByteStreamController): Promise<any>;
17
+ start(controller: ReadableByteStreamController): void;
18
+ readonly autoAllocateChunkSize: number;
19
+ readonly type: ReadableStreamType;
20
+ }
21
+
22
+ export class IntoUnderlyingSink {
23
+ private constructor();
24
+ free(): void;
25
+ [Symbol.dispose](): void;
26
+ abort(reason: any): Promise<any>;
27
+ close(): Promise<any>;
28
+ write(chunk: any): Promise<any>;
29
+ }
30
+
31
+ export class IntoUnderlyingSource {
32
+ private constructor();
33
+ free(): void;
34
+ [Symbol.dispose](): void;
35
+ cancel(): void;
36
+ pull(controller: ReadableStreamDefaultController): Promise<any>;
37
+ }
38
+
39
+ /**
40
+ * Decrypt a ZKFE envelope (browser / React Native).
41
+ *
42
+ * `input_json` — JSON-serialized `DecryptInput`.
43
+ * Returns a `Promise<string>` resolving to JSON-serialized `DecryptOutput`.
44
+ */
45
+ export function zk_decrypt(input_json: any): Promise<any>;
46
+
47
+ /**
48
+ * Encrypt via the customer KMS (browser / React Native).
49
+ *
50
+ * `input_json` — JSON-serialized `EncryptInput`.
51
+ * Returns a `Promise<string>` resolving to JSON-serialized `EncryptOutput`,
52
+ * or rejecting with a `JsValue` error string.
53
+ */
54
+ export function zk_encrypt(input_json: any): Promise<any>;
55
+
56
+ export type InitInput = RequestInfo | URL | Response | BufferSource | WebAssembly.Module;
57
+
58
+ export interface InitOutput {
59
+ readonly memory: WebAssembly.Memory;
60
+ readonly zk_decrypt: (a: number) => number;
61
+ readonly zk_encrypt: (a: number) => number;
62
+ readonly __wbg_intounderlyingbytesource_free: (a: number, b: number) => void;
63
+ readonly __wbg_intounderlyingsink_free: (a: number, b: number) => void;
64
+ readonly __wbg_intounderlyingsource_free: (a: number, b: number) => void;
65
+ readonly intounderlyingbytesource_autoAllocateChunkSize: (a: number) => number;
66
+ readonly intounderlyingbytesource_cancel: (a: number) => void;
67
+ readonly intounderlyingbytesource_pull: (a: number, b: number) => number;
68
+ readonly intounderlyingbytesource_start: (a: number, b: number) => void;
69
+ readonly intounderlyingbytesource_type: (a: number) => number;
70
+ readonly intounderlyingsink_abort: (a: number, b: number) => number;
71
+ readonly intounderlyingsink_close: (a: number) => number;
72
+ readonly intounderlyingsink_write: (a: number, b: number) => number;
73
+ readonly intounderlyingsource_cancel: (a: number) => void;
74
+ readonly intounderlyingsource_pull: (a: number, b: number) => number;
75
+ readonly __wasm_bindgen_func_elem_441: (a: number, b: number, c: number, d: number) => void;
76
+ readonly __wasm_bindgen_func_elem_722: (a: number, b: number, c: number, d: number) => void;
77
+ readonly __wasm_bindgen_func_elem_1519: (a: number, b: number) => void;
78
+ readonly __wbindgen_export: (a: number, b: number) => number;
79
+ readonly __wbindgen_export2: (a: number, b: number, c: number, d: number) => number;
80
+ readonly __wbindgen_export3: (a: number) => void;
81
+ readonly __wbindgen_export4: (a: number, b: number) => void;
82
+ readonly __wbindgen_add_to_stack_pointer: (a: number) => number;
83
+ }
84
+
85
+ export type SyncInitInput = BufferSource | WebAssembly.Module;
86
+
87
+ /**
88
+ * Instantiates the given `module`, which can either be bytes or
89
+ * a precompiled `WebAssembly.Module`.
90
+ *
91
+ * @param {{ module: SyncInitInput }} module - Passing `SyncInitInput` directly is deprecated.
92
+ *
93
+ * @returns {InitOutput}
94
+ */
95
+ export function initSync(module: { module: SyncInitInput } | SyncInitInput): InitOutput;
96
+
97
+ /**
98
+ * If `module_or_path` is {RequestInfo} or {URL}, makes a request and
99
+ * for everything else, calls `WebAssembly.instantiate` directly.
100
+ *
101
+ * @param {{ module_or_path: InitInput | Promise<InitInput> }} module_or_path - Passing `InitInput` directly is deprecated.
102
+ *
103
+ * @returns {Promise<InitOutput>}
104
+ */
105
+ export default function __wbg_init (module_or_path?: { module_or_path: InitInput | Promise<InitInput> } | InitInput | Promise<InitInput>): Promise<InitOutput>;