@litert-lm/core 0.14.0 → 0.16.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.
- package/package.json +1 -1
- package/README.md +0 -164
- package/dist/cleanup.d.ts +0 -25
- package/dist/cleanup.d.ts.map +0 -1
- package/dist/cleanup.js +0 -36
- package/dist/cleanup.js.map +0 -1
- package/dist/conversation.d.ts +0 -46
- package/dist/conversation.d.ts.map +0 -1
- package/dist/conversation.js +0 -152
- package/dist/conversation.js.map +0 -1
- package/dist/conversation_config.d.ts +0 -153
- package/dist/conversation_config.d.ts.map +0 -1
- package/dist/conversation_config.js +0 -17
- package/dist/conversation_config.js.map +0 -1
- package/dist/engine.d.ts +0 -37
- package/dist/engine.d.ts.map +0 -1
- package/dist/engine.js +0 -203
- package/dist/engine.js.map +0 -1
- package/dist/engine_settings.d.ts +0 -57
- package/dist/engine_settings.d.ts.map +0 -1
- package/dist/engine_settings.js +0 -114
- package/dist/engine_settings.js.map +0 -1
- package/dist/global_litertlm.d.ts +0 -66
- package/dist/global_litertlm.d.ts.map +0 -1
- package/dist/global_litertlm.js +0 -85
- package/dist/global_litertlm.js.map +0 -1
- package/dist/index.d.ts +0 -31
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -31
- package/dist/index.js.map +0 -1
- package/dist/litertlm_web.d.ts +0 -32
- package/dist/litertlm_web.d.ts.map +0 -1
- package/dist/litertlm_web.js +0 -75
- package/dist/litertlm_web.js.map +0 -1
- package/dist/load.d.ts +0 -28
- package/dist/load.d.ts.map +0 -1
- package/dist/load.js +0 -50
- package/dist/load.js.map +0 -1
- package/dist/load_litertlm.d.ts +0 -58
- package/dist/load_litertlm.d.ts.map +0 -1
- package/dist/load_litertlm.js +0 -87
- package/dist/load_litertlm.js.map +0 -1
- package/dist/mutex.d.ts +0 -45
- package/dist/mutex.d.ts.map +0 -1
- package/dist/mutex.js +0 -62
- package/dist/mutex.js.map +0 -1
- package/dist/orchestration/auto_tool_chat.d.ts +0 -82
- package/dist/orchestration/auto_tool_chat.d.ts.map +0 -1
- package/dist/orchestration/auto_tool_chat.js +0 -304
- package/dist/orchestration/auto_tool_chat.js.map +0 -1
- package/dist/orchestration/chat_interface.d.ts +0 -30
- package/dist/orchestration/chat_interface.d.ts.map +0 -1
- package/dist/orchestration/chat_interface.js +0 -17
- package/dist/orchestration/chat_interface.js.map +0 -1
- package/dist/orchestration/webmcp_tool.d.ts +0 -41
- package/dist/orchestration/webmcp_tool.d.ts.map +0 -1
- package/dist/orchestration/webmcp_tool.js +0 -32
- package/dist/orchestration/webmcp_tool.js.map +0 -1
- package/dist/readable_stream_data_stream_wrapper.d.ts +0 -44
- package/dist/readable_stream_data_stream_wrapper.d.ts.map +0 -1
- package/dist/readable_stream_data_stream_wrapper.js +0 -315
- package/dist/readable_stream_data_stream_wrapper.js.map +0 -1
- package/dist/session.d.ts +0 -46
- package/dist/session.d.ts.map +0 -1
- package/dist/session.js +0 -88
- package/dist/session.js.map +0 -1
- package/dist/session_config.d.ts +0 -55
- package/dist/session_config.d.ts.map +0 -1
- package/dist/session_config.js +0 -109
- package/dist/session_config.js.map +0 -1
- package/dist/testing/fakes.d.ts +0 -65
- package/dist/testing/fakes.d.ts.map +0 -1
- package/dist/testing/fakes.js +0 -115
- package/dist/testing/fakes.js.map +0 -1
- package/dist/testing/index.d.ts +0 -17
- package/dist/testing/index.d.ts.map +0 -1
- package/dist/testing/index.js +0 -17
- package/dist/testing/index.js.map +0 -1
- package/dist/types.d.ts +0 -42
- package/dist/types.d.ts.map +0 -1
- package/dist/types.js +0 -17
- package/dist/types.js.map +0 -1
- package/dist/url_path_utils.d.ts +0 -28
- package/dist/url_path_utils.d.ts.map +0 -1
- package/dist/url_path_utils.js +0 -34
- package/dist/url_path_utils.js.map +0 -1
- package/dist/wasm_binding_types.d.ts +0 -376
- package/dist/wasm_binding_types.d.ts.map +0 -1
- package/dist/wasm_binding_types.js +0 -39
- package/dist/wasm_binding_types.js.map +0 -1
- package/dist/wasm_feature_detect.d.ts +0 -45
- package/dist/wasm_feature_detect.d.ts.map +0 -1
- package/dist/wasm_feature_detect.js +0 -139
- package/dist/wasm_feature_detect.js.map +0 -1
- package/dist/wasm_utils.d.ts +0 -30
- package/dist/wasm_utils.d.ts.map +0 -1
- package/dist/wasm_utils.js +0 -41
- package/dist/wasm_utils.js.map +0 -1
- package/wasm/litertlm_wasm_asyncify_internal.js +0 -8615
- package/wasm/litertlm_wasm_asyncify_internal.wasm +0 -0
- package/wasm/litertlm_wasm_compat_asyncify_internal.js +0 -8624
- package/wasm/litertlm_wasm_compat_asyncify_internal.wasm +0 -0
- package/wasm/litertlm_wasm_compat_internal.js +0 -8410
- package/wasm/litertlm_wasm_compat_internal.wasm +0 -0
- package/wasm/litertlm_wasm_internal.js +0 -8399
- package/wasm/litertlm_wasm_internal.wasm +0 -0
|
@@ -1,376 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2026 Google LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { WasmModule } from '@litertjs/wasm-utils';
|
|
17
|
-
import { type ReadableStreamDataStreamWrapper } from './readable_stream_data_stream_wrapper.js';
|
|
18
|
-
/**
|
|
19
|
-
* Backend types for LiteRT-LM.
|
|
20
|
-
*/
|
|
21
|
-
export declare const Backend: {
|
|
22
|
-
UNSPECIFIED: number;
|
|
23
|
-
CPU_ARTISAN: number;
|
|
24
|
-
GPU_ARTISAN: number;
|
|
25
|
-
CPU: number;
|
|
26
|
-
GPU: number;
|
|
27
|
-
GOOGLE_TENSOR_ARTISAN: number;
|
|
28
|
-
NPU: number;
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* A LiteRT-LM Backend.
|
|
32
|
-
*/
|
|
33
|
-
export type Backend = (typeof Backend)[keyof typeof Backend];
|
|
34
|
-
/**
|
|
35
|
-
* An object that must be manually deleted to free its memory.
|
|
36
|
-
*/
|
|
37
|
-
export declare interface Deletable {
|
|
38
|
-
delete(): void;
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* A C++ vector of elements.
|
|
42
|
-
*/
|
|
43
|
-
export declare interface EmscriptenVector<T> extends Deletable {
|
|
44
|
-
size(): number;
|
|
45
|
-
get(index: number): T;
|
|
46
|
-
push_back(item: T): void;
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* A C++ vector of uint32_t.
|
|
50
|
-
*/
|
|
51
|
-
export declare interface VectorUint32Constructor {
|
|
52
|
-
new (): EmscriptenVector<number>;
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* A C++ vector of int.
|
|
56
|
-
*/
|
|
57
|
-
export declare interface VectorIntConstructor {
|
|
58
|
-
new (): EmscriptenVector<number>;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* A C++ vector of vector of int.
|
|
62
|
-
*/
|
|
63
|
-
export declare interface VectorVectorIntConstructor {
|
|
64
|
-
new (): EmscriptenVector<EmscriptenVector<number>>;
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* A C++ enum value in Wasm.
|
|
68
|
-
*/
|
|
69
|
-
export declare interface EmscriptenEnumElement<T> {
|
|
70
|
-
value: T;
|
|
71
|
-
}
|
|
72
|
-
type EmscriptenEnum<T extends object> = {
|
|
73
|
-
[K in keyof T]: EmscriptenEnumElement<T[K]>;
|
|
74
|
-
};
|
|
75
|
-
declare interface ModelAssetsConstructor {
|
|
76
|
-
new (...args: never[]): ModelAssets;
|
|
77
|
-
create(modelPath: string): ModelAssets;
|
|
78
|
-
createStreaming(stream: ReadableStreamDataStream): ModelAssets;
|
|
79
|
-
}
|
|
80
|
-
declare const ModelAssetsBrand: unique symbol;
|
|
81
|
-
/**
|
|
82
|
-
* LiteRT-LM ModelAssets
|
|
83
|
-
*/
|
|
84
|
-
export declare interface ModelAssets extends Deletable {
|
|
85
|
-
[ModelAssetsBrand]: void;
|
|
86
|
-
getPath(): string;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* LiteRT-LM Backend enum values
|
|
90
|
-
*/
|
|
91
|
-
declare interface EngineSettingsConstructor {
|
|
92
|
-
new (...args: never[]): EngineSettings;
|
|
93
|
-
createDefault(modelAssets: ModelAssets, backend: EmscriptenEnumElement<Backend>): EngineSettings;
|
|
94
|
-
}
|
|
95
|
-
declare const EngineSettingsBrand: unique symbol;
|
|
96
|
-
/**
|
|
97
|
-
* LiteRT-LM EngineSettings
|
|
98
|
-
*/
|
|
99
|
-
export declare interface EngineSettings extends Deletable {
|
|
100
|
-
[EngineSettingsBrand]: void;
|
|
101
|
-
getMutableMainExecutorSettings(): LlmExecutorSettings;
|
|
102
|
-
getParallelFileSectionLoading(): boolean;
|
|
103
|
-
setParallelFileSectionLoading(parallelFileSectionLoading: boolean): void;
|
|
104
|
-
getSingleThreadedExecution(): boolean;
|
|
105
|
-
setSingleThreadedExecution(singleThreadedExecution: boolean): void;
|
|
106
|
-
enableBenchmark(): void;
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* LiteRT-LM CpuConfig
|
|
110
|
-
*/
|
|
111
|
-
export declare interface CpuConfig {
|
|
112
|
-
kv_increment_size: number;
|
|
113
|
-
prefill_chunk_size: number;
|
|
114
|
-
number_of_threads: number;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* LiteRT-LM GpuConfig
|
|
118
|
-
*/
|
|
119
|
-
export declare interface GpuConfig {
|
|
120
|
-
max_top_k: number;
|
|
121
|
-
external_tensor_mode: boolean;
|
|
122
|
-
}
|
|
123
|
-
/**
|
|
124
|
-
* LiteRT-LM GpuArtisanConfig
|
|
125
|
-
*/
|
|
126
|
-
export declare interface GpuArtisanConfig {
|
|
127
|
-
num_output_candidates: number;
|
|
128
|
-
wait_for_weight_uploads: boolean;
|
|
129
|
-
num_decode_steps_per_sync: number;
|
|
130
|
-
sequence_batch_size: number;
|
|
131
|
-
supported_lora_ranks: EmscriptenVector<number>;
|
|
132
|
-
max_top_k: number;
|
|
133
|
-
enable_decode_logits: boolean;
|
|
134
|
-
enable_external_embeddings: boolean;
|
|
135
|
-
use_submodel: boolean;
|
|
136
|
-
}
|
|
137
|
-
/**
|
|
138
|
-
* LiteRT-LM AdvancedSettings
|
|
139
|
-
*/
|
|
140
|
-
export declare interface AdvancedSettings {
|
|
141
|
-
prefill_batch_sizes: number[];
|
|
142
|
-
num_output_candidates: number;
|
|
143
|
-
configure_magic_numbers: boolean;
|
|
144
|
-
verify_magic_numbers: boolean;
|
|
145
|
-
clear_kv_cache_before_prefill: boolean;
|
|
146
|
-
num_logits_to_print_after_decode: number;
|
|
147
|
-
gpu_madvise_original_shared_tensors: boolean;
|
|
148
|
-
is_benchmark: boolean;
|
|
149
|
-
preferred_device_substr: string;
|
|
150
|
-
num_threads_to_upload: number;
|
|
151
|
-
num_threads_to_compile: number;
|
|
152
|
-
convert_weights_on_gpu: boolean;
|
|
153
|
-
optimize_shader_compilation: boolean;
|
|
154
|
-
share_constant_tensors: boolean;
|
|
155
|
-
}
|
|
156
|
-
declare const ExecutorSettingsBaseBrand: unique symbol;
|
|
157
|
-
/**
|
|
158
|
-
* LiteRT-LM ExecutorSettingsBase
|
|
159
|
-
*/
|
|
160
|
-
export declare interface ExecutorSettingsBase extends Deletable {
|
|
161
|
-
[ExecutorSettingsBaseBrand]: void;
|
|
162
|
-
getCacheDir(): string;
|
|
163
|
-
setCacheDir(cacheDir: string): void;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* LiteRT-LM LlmExecutorSettings constructor
|
|
167
|
-
*/
|
|
168
|
-
declare interface LlmExecutorSettingsConstructor {
|
|
169
|
-
new (...args: never[]): LlmExecutorSettings;
|
|
170
|
-
}
|
|
171
|
-
declare const LlmExecutorSettingsBrand: unique symbol;
|
|
172
|
-
/**
|
|
173
|
-
* LiteRT-LM LlmExecutorSettings
|
|
174
|
-
*/
|
|
175
|
-
export declare interface LlmExecutorSettings extends ExecutorSettingsBase {
|
|
176
|
-
[LlmExecutorSettingsBrand]: void;
|
|
177
|
-
getMaxNumTokens(): number;
|
|
178
|
-
setMaxNumTokens(maxNumTokens: number): void;
|
|
179
|
-
setBackendConfigCpu(cpuConfig: CpuConfig): void;
|
|
180
|
-
setBackendConfigGpu(gpuConfig: GpuConfig): void;
|
|
181
|
-
setBackendConfigGpuArtisan(gpuArtisanConfig: GpuArtisanConfig): void;
|
|
182
|
-
getBackendConfigCpu(): CpuConfig;
|
|
183
|
-
getBackendConfigGpu(): GpuConfig;
|
|
184
|
-
getBackendConfigGpuArtisan(): GpuArtisanConfig;
|
|
185
|
-
setSamplerBackend(backend: EmscriptenEnumElement<Backend>): void;
|
|
186
|
-
getSamplerBackend(): EmscriptenEnumElement<Backend>;
|
|
187
|
-
setAdvancedSettings(advancedSettings: AdvancedSettings): void;
|
|
188
|
-
getAdvancedSettings(): AdvancedSettings;
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* LiteRT-LM Engine constructor
|
|
192
|
-
*/
|
|
193
|
-
declare interface EngineConstructor {
|
|
194
|
-
new (...args: never[]): Engine;
|
|
195
|
-
createEngine(engineSettings: EngineSettings, inputPromptAsHint: string): Promise<Engine>;
|
|
196
|
-
createStreaming(engineSettings: EngineSettings, inputPromptAsHint: string): Promise<Engine>;
|
|
197
|
-
}
|
|
198
|
-
declare const EngineBrand: unique symbol;
|
|
199
|
-
/**
|
|
200
|
-
* LiteRT-LM Engine
|
|
201
|
-
*/
|
|
202
|
-
export declare interface Engine extends Deletable {
|
|
203
|
-
[EngineBrand]: void;
|
|
204
|
-
createSession(sessionConfig: SessionConfig): Session;
|
|
205
|
-
getEngineSettings(): EngineSettings;
|
|
206
|
-
waitUntilDone(): Promise<void>;
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* LiteRT-LM SamplerType enum values
|
|
210
|
-
*/
|
|
211
|
-
export declare const SamplerType: {
|
|
212
|
-
readonly TYPE_UNSPECIFIED: 0;
|
|
213
|
-
readonly TOP_K: 1;
|
|
214
|
-
readonly TOP_P: 2;
|
|
215
|
-
readonly GREEDY: 3;
|
|
216
|
-
};
|
|
217
|
-
/**
|
|
218
|
-
* LiteRT-LM SamplerType
|
|
219
|
-
*/
|
|
220
|
-
export type SamplerType = typeof SamplerType[keyof typeof SamplerType];
|
|
221
|
-
/**
|
|
222
|
-
* LiteRT-LM SamplerParameters
|
|
223
|
-
*/
|
|
224
|
-
declare interface SamplerParameters {
|
|
225
|
-
type(): EmscriptenEnumElement<SamplerType>;
|
|
226
|
-
setType(type: EmscriptenEnumElement<SamplerType>): void;
|
|
227
|
-
k(): number;
|
|
228
|
-
setK(k: number): void;
|
|
229
|
-
p(): number;
|
|
230
|
-
setP(p: number): void;
|
|
231
|
-
temperature(): number;
|
|
232
|
-
setTemperature(temperature: number): void;
|
|
233
|
-
seed(): number;
|
|
234
|
-
setSeed(seed: number): void;
|
|
235
|
-
}
|
|
236
|
-
/**
|
|
237
|
-
* LiteRT-LM SessionConfig constructor
|
|
238
|
-
*/
|
|
239
|
-
declare interface SessionConfigConstructor {
|
|
240
|
-
new (...args: never[]): SessionConfig;
|
|
241
|
-
createDefault(): SessionConfig;
|
|
242
|
-
}
|
|
243
|
-
declare const SessionConfigBrand: unique symbol;
|
|
244
|
-
/**
|
|
245
|
-
* LiteRT-LM SessionConfig
|
|
246
|
-
*/
|
|
247
|
-
export declare interface SessionConfig extends Deletable {
|
|
248
|
-
[SessionConfigBrand]: void;
|
|
249
|
-
getAudioModalityEnabled(): boolean;
|
|
250
|
-
setAudioModalityEnabled(audioModalityEnabled: boolean): void;
|
|
251
|
-
getVisionModalityEnabled(): boolean;
|
|
252
|
-
setVisionModalityEnabled(visionModalityEnabled: boolean): void;
|
|
253
|
-
getMutableSamplerParams(): SamplerParameters;
|
|
254
|
-
getStopTokenIds(): EmscriptenVector<EmscriptenVector<number>>;
|
|
255
|
-
setStopTokenIds(stopTokenIds: EmscriptenVector<EmscriptenVector<number>>): void;
|
|
256
|
-
getStartTokenId(): number;
|
|
257
|
-
setStartTokenId(startTokenId: number): void;
|
|
258
|
-
getNumOutputCandidates(): number;
|
|
259
|
-
setNumOutputCandidates(numOutputCandidates: number): void;
|
|
260
|
-
getSamplerBackend(): EmscriptenEnumElement<Backend>;
|
|
261
|
-
setSamplerBackend(backend: EmscriptenEnumElement<Backend>): void;
|
|
262
|
-
getApplyPromptTemplateInSession(): boolean;
|
|
263
|
-
setApplyPromptTemplateInSession(applyPromptTemplateInSession: boolean): void;
|
|
264
|
-
getUseExternalSampler(): boolean;
|
|
265
|
-
setUseExternalSampler(useExternalSampler: boolean): void;
|
|
266
|
-
getMaxOutputTokens(): number;
|
|
267
|
-
setMaxOutputTokens(maxOutputTokens: number): void;
|
|
268
|
-
}
|
|
269
|
-
declare const SessionBrand: unique symbol;
|
|
270
|
-
/**
|
|
271
|
-
* LiteRT-LM Session
|
|
272
|
-
*/
|
|
273
|
-
export declare interface Session extends Deletable {
|
|
274
|
-
[SessionBrand]: void;
|
|
275
|
-
getSessionConfig(): SessionConfig;
|
|
276
|
-
runPrefill(inputs: string[]): Promise<void>;
|
|
277
|
-
runDecode(): Promise<Responses>;
|
|
278
|
-
cancelProcess(): void;
|
|
279
|
-
}
|
|
280
|
-
declare const ResponsesBrand: unique symbol;
|
|
281
|
-
/**
|
|
282
|
-
* LiteRT-LM Responses
|
|
283
|
-
*/
|
|
284
|
-
export declare interface Responses extends Deletable {
|
|
285
|
-
[ResponsesBrand]: void;
|
|
286
|
-
getTexts(): EmscriptenVector<string>;
|
|
287
|
-
}
|
|
288
|
-
/**
|
|
289
|
-
* LiteRT-LM ConversationConfig constructor
|
|
290
|
-
*/
|
|
291
|
-
declare interface ConversationConfigConstructor {
|
|
292
|
-
new (...args: never[]): ConversationConfig;
|
|
293
|
-
createDefault(engine: Engine): ConversationConfig;
|
|
294
|
-
createCustom(engine: Engine, sessionConfig: SessionConfig, enableConstrainedDecoding: boolean, prefillPrefaceOnInit: boolean, filterChannelContentFromKvCache: boolean, prefaceJson: string): ConversationConfig;
|
|
295
|
-
}
|
|
296
|
-
declare const ConversationConfigBrand: unique symbol;
|
|
297
|
-
/**
|
|
298
|
-
* LiteRT-LM ConversationConfig
|
|
299
|
-
*/
|
|
300
|
-
export declare interface ConversationConfig extends Deletable {
|
|
301
|
-
[ConversationConfigBrand]: void;
|
|
302
|
-
}
|
|
303
|
-
/**
|
|
304
|
-
* LiteRT-LM Conversation constructor
|
|
305
|
-
*/
|
|
306
|
-
declare interface ConversationConstructor {
|
|
307
|
-
new (...args: never[]): Conversation;
|
|
308
|
-
create(engine: Engine, config: ConversationConfig): Promise<Conversation>;
|
|
309
|
-
}
|
|
310
|
-
declare const ConversationBrand: unique symbol;
|
|
311
|
-
/**
|
|
312
|
-
* LiteRT-LM Conversation
|
|
313
|
-
*/
|
|
314
|
-
export declare interface Conversation extends Deletable {
|
|
315
|
-
[ConversationBrand]: void;
|
|
316
|
-
sendMessage(messageJson: string): Promise<string>;
|
|
317
|
-
sendMessageAsync(messageJson: string, callback: (chunk: string | null, isDone: boolean, error: string | null) => void): Promise<void>;
|
|
318
|
-
getHistory(): string;
|
|
319
|
-
getTokenCount(): number;
|
|
320
|
-
getBenchmarkInfo(): BenchmarkInfo;
|
|
321
|
-
cancelProcess(): void;
|
|
322
|
-
}
|
|
323
|
-
/** Benchmark metadata for tracking decoding efficiency. */
|
|
324
|
-
export declare interface BenchmarkInfo {
|
|
325
|
-
lastPrefillTokensPerSecond: number;
|
|
326
|
-
lastPrefillTokenCount: number;
|
|
327
|
-
lastDecodeTokensPerSecond: number;
|
|
328
|
-
lastDecodeTokenCount: number;
|
|
329
|
-
timeToFirstTokenInSecond: number;
|
|
330
|
-
}
|
|
331
|
-
declare interface ReadableStreamDataStreamConstructor {
|
|
332
|
-
new (...args: never[]): ReadableStreamDataStream;
|
|
333
|
-
create(stream: ReadableStreamDataStreamWrapper): ReadableStreamDataStream;
|
|
334
|
-
}
|
|
335
|
-
declare const ReadableStreamDataStreamBrand: unique symbol;
|
|
336
|
-
/**
|
|
337
|
-
* LiteRT-LM ReadableStreamDataStream.
|
|
338
|
-
*/
|
|
339
|
-
export declare interface ReadableStreamDataStream extends Deletable {
|
|
340
|
-
[ReadableStreamDataStreamBrand]: void;
|
|
341
|
-
}
|
|
342
|
-
type BackendEnum = EmscriptenEnum<{
|
|
343
|
-
UNSPECIFIED: Backend;
|
|
344
|
-
CPU_ARTISAN: Backend;
|
|
345
|
-
GPU_ARTISAN: Backend;
|
|
346
|
-
CPU: Backend;
|
|
347
|
-
GPU: Backend;
|
|
348
|
-
GOOGLE_TENSOR_ARTISAN: Backend;
|
|
349
|
-
NPU: Backend;
|
|
350
|
-
}>;
|
|
351
|
-
/**
|
|
352
|
-
* Interface for the C++ LiteRt LM bindings.
|
|
353
|
-
*/
|
|
354
|
-
export declare interface LiteRtLmWasm extends WasmModule {
|
|
355
|
-
preinitializedWebGPUDevice?: GPUDevice;
|
|
356
|
-
VectorUint32: VectorUint32Constructor;
|
|
357
|
-
VectorInt: VectorIntConstructor;
|
|
358
|
-
VectorVectorInt: VectorVectorIntConstructor;
|
|
359
|
-
FS: FileSystemApi;
|
|
360
|
-
setupLogging(): void;
|
|
361
|
-
Backend: BackendEnum;
|
|
362
|
-
ModelAssets: ModelAssetsConstructor;
|
|
363
|
-
EngineSettings: EngineSettingsConstructor;
|
|
364
|
-
LlmExecutorSettings: LlmExecutorSettingsConstructor;
|
|
365
|
-
Engine: EngineConstructor;
|
|
366
|
-
SessionConfig: SessionConfigConstructor;
|
|
367
|
-
ReadableStreamDataStream: ReadableStreamDataStreamConstructor;
|
|
368
|
-
ConversationConfig: ConversationConfigConstructor;
|
|
369
|
-
Conversation: ConversationConstructor;
|
|
370
|
-
}
|
|
371
|
-
declare interface FileSystemApi {
|
|
372
|
-
writeFile(path: string, data: string | ArrayBufferView): void;
|
|
373
|
-
unlink(path: string): void;
|
|
374
|
-
}
|
|
375
|
-
export {};
|
|
376
|
-
//# sourceMappingURL=wasm_binding_types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm_binding_types.d.ts","sourceRoot":"","sources":["../src/wasm_binding_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAEhD,OAAO,EAAC,KAAK,+BAA+B,EAAC,MAAM,0CAA0C,CAAC;AAE9F;;GAEG;AACH,eAAO,MAAM,OAAO;;;;;;;;CAUnB,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,OAAO,CAAC,CAAC,MAAM,OAAO,OAAO,CAAC,CAAC;AAE7D;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,SAAS;IAChC,MAAM,IAAI,IAAI,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC,CAAC,CAAE,SAAQ,SAAS;IAC5D,IAAI,IAAI,MAAM,CAAC;IACf,GAAG,CAAC,KAAK,EAAE,MAAM,GAAG,CAAC,CAAC;IACtB,SAAS,CAAC,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;CAC1B;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,uBAAuB;IAC9C,QAAO,gBAAgB,CAAC,MAAM,CAAC,CAAC;CACjC;AAED;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,oBAAoB;I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AEjE,CAAC,6BAA6B,CAAC,EAAE,IAAI,CAAC;CACvC;AAED,KAAK,WAAW,GAAG,cAAc,CAAC;IAChC,WAAW,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IAAC,WAAW,EAAE,OAAO,CAAC;IACjE,GAAG,EAAE,OAAO,CAAC;IACb,GAAG,EAAE,OAAO,CAAC;IACb,qBAAqB,EAAE,OAAO,CAAC;IAC/B,GAAG,EAAE,OAAO,CAAC;CACd,CAAC,CAAC;AAEH;;GAEG;AACH,MAAM,CAAC,OAAO,WAAW,YAAa,SAAQ,UAAU;IACtD,0BAA0B,CAAC,EAAE,SAAS,CAAC;IACvC,YAAY,EAAE,uBAAuB,CAAC;IACtC,SAAS,EAAE,oBAAoB,CAAC;IAChC,eAAe,EAAE,0BAA0B,CAAC;IAC5C,EAAE,EAAE,aAAa,CAAC;IAClB,YAAY,IAAI,IAAI,CAAC;IACrB,OAAO,EAAE,WAAW,CAAC;IACrB,WAAW,EAAE,sBAAsB,CAAC;IACpC,cAAc,EAAE,yBAAyB,CAAC;IAC1C,mBAAmB,EAAE,8BAA8B,CAAC;IACpD,MAAM,EAAE,iBAAiB,CAAC;IAC1B,aAAa,EAAE,wBAAwB,CAAC;IACxC,wBAAwB,EAAE,mCAAmC,CAAC;IAC9D,kBAAkB,EAAE,6BAA6B,CAAC;IAClD,YAAY,EAAE,uBAAuB,CAAC;CACvC;AAOD,OAAO,WAAW,aAAa;IAC7B,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAC,eAAe,GAAG,IAAI,CAAC;IAC5D,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5B"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2026 Google LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Backend types for LiteRT-LM.
|
|
18
|
-
*/
|
|
19
|
-
export const Backend = {
|
|
20
|
-
// Ideally, we'd pull these from the Wasm module, but we want them to be
|
|
21
|
-
// available in JS before the Wasm module is loaded.
|
|
22
|
-
UNSPECIFIED: 0,
|
|
23
|
-
CPU_ARTISAN: 1,
|
|
24
|
-
GPU_ARTISAN: 2,
|
|
25
|
-
CPU: 3,
|
|
26
|
-
GPU: 4,
|
|
27
|
-
GOOGLE_TENSOR_ARTISAN: 5,
|
|
28
|
-
NPU: 6,
|
|
29
|
-
};
|
|
30
|
-
/**
|
|
31
|
-
* LiteRT-LM SamplerType enum values
|
|
32
|
-
*/
|
|
33
|
-
export const SamplerType = {
|
|
34
|
-
TYPE_UNSPECIFIED: 0,
|
|
35
|
-
TOP_K: 1,
|
|
36
|
-
TOP_P: 2,
|
|
37
|
-
GREEDY: 3,
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=wasm_binding_types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm_binding_types.js","sourceRoot":"","sources":["../src/wasm_binding_types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAMH;;GAEG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG;IACrB,wEAAwE;IACxE,oDAAoD;IACpD,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,CAAC;IACd,WAAW,EAAE,CAAC;IACd,GAAG,EAAE,CAAC;IACN,GAAG,EAAE,CAAC;IACN,qBAAqB,EAAE,CAAC;IACxB,GAAG,EAAE,CAAC;CACP,CAAC;AAqQF;;GAEG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB,gBAAgB,EAAE,CAAC;IACnB,KAAK,EAAE,CAAC;IACR,KAAK,EAAE,CAAC;IACR,MAAM,EAAE,CAAC;CACD,CAAC"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Google LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
interface SupportStatus {
|
|
17
|
-
supported: boolean;
|
|
18
|
-
error?: Error;
|
|
19
|
-
}
|
|
20
|
-
declare interface WasmFeatureValues {
|
|
21
|
-
relaxedSimd: Promise<SupportStatus> | undefined;
|
|
22
|
-
threads: Promise<SupportStatus> | undefined;
|
|
23
|
-
jspi: Promise<SupportStatus> | undefined;
|
|
24
|
-
}
|
|
25
|
-
declare const WASM_FEATURE_VALUES: WasmFeatureValues;
|
|
26
|
-
/** Returns true if JSPI is supported in the browser. */
|
|
27
|
-
export declare function isJspiSupported(): boolean;
|
|
28
|
-
declare const WASM_FEATURE_CHECKS: Record<keyof typeof WASM_FEATURE_VALUES, () => Promise<SupportStatus>>;
|
|
29
|
-
/**
|
|
30
|
-
* Check if a given WASM feature is supported.
|
|
31
|
-
*
|
|
32
|
-
* @param feature The feature to check.
|
|
33
|
-
* @return A promise that resolves to true if the feature is supported,
|
|
34
|
-
* false otherwise.
|
|
35
|
-
*/
|
|
36
|
-
export declare function supportsFeature(feature: keyof typeof WASM_FEATURE_CHECKS): Promise<boolean>;
|
|
37
|
-
/**
|
|
38
|
-
* Throw an error if a given WASM feature is not supported.
|
|
39
|
-
*
|
|
40
|
-
* @param feature The feature to check.
|
|
41
|
-
* @throws An error if the feature is not supported.
|
|
42
|
-
*/
|
|
43
|
-
export declare function throwIfFeatureNotSupported(feature: keyof typeof WASM_FEATURE_CHECKS): Promise<void>;
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=wasm_feature_detect.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm_feature_detect.d.ts","sourceRoot":"","sources":["../src/wasm_feature_detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAqCH,UAAU,aAAa;IACrB,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC;CACf;AAID,OAAO,WAAW,iBAAiB;IACjC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,GAAC,SAAS,CAAC;IAC9C,OAAO,EAAE,OAAO,CAAC,aAAa,CAAC,GAAC,SAAS,CAAC;IAC1C,IAAI,EAAE,OAAO,CAAC,aAAa,CAAC,GAAC,SAAS,CAAC;CACxC;AAED,QAAA,MAAM,mBAAmB,EAAE,iBAI1B,CAAC;AAEF,wDAAwD;AACxD,wBAAgB,eAAe,YAG9B;AAWD,QAAA,MAAM,mBAAmB,EACrB,MAAM,CAAC,MAAM,OAAO,mBAAmB,EAAE,MAAM,OAAO,CAAC,aAAa,CAAC,CAoCpE,CAAC;AAEN;;;;;;GAMG;AACH,wBAAsB,eAAe,CACjC,OAAO,EAAE,MAAM,OAAO,mBAAmB,GAAG,OAAO,CAAC,OAAO,CAAC,CAO/D;AAED;;;;;GAKG;AACH,wBAAsB,0BAA0B,CAC5C,OAAO,EAAE,MAAM,OAAO,mBAAmB,GAAG,OAAO,CAAC,IAAI,CAAC,CAU5D"}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Google LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
/**
|
|
17
|
-
* Checks for relaxed SIMD support.
|
|
18
|
-
*
|
|
19
|
-
* (module
|
|
20
|
-
* (func (result v128)
|
|
21
|
-
* i32.const 1
|
|
22
|
-
* i8x16.splat
|
|
23
|
-
* i32.const 2
|
|
24
|
-
* i8x16.splat
|
|
25
|
-
* i8x16.relaxed_swizzle
|
|
26
|
-
* )
|
|
27
|
-
* )
|
|
28
|
-
*/
|
|
29
|
-
const WASM_RELAXED_SIMD_CHECK = new Uint8Array([
|
|
30
|
-
0, 97, 115, 109, 1, 0, 0, 0, 1, 5, 1, 96, 0, 1, 123, 3, 2, 1,
|
|
31
|
-
0, 10, 15, 1, 13, 0, 65, 1, 253, 15, 65, 2, 253, 15, 253, 128, 2, 11
|
|
32
|
-
]);
|
|
33
|
-
/**
|
|
34
|
-
* Checks for WebAssembly Pthreads emulation.
|
|
35
|
-
*
|
|
36
|
-
* (module
|
|
37
|
-
* (memory 1 1 shared)
|
|
38
|
-
* (func
|
|
39
|
-
* i32.const 0
|
|
40
|
-
* i32.atomic.load
|
|
41
|
-
* drop
|
|
42
|
-
* )
|
|
43
|
-
* )
|
|
44
|
-
*/
|
|
45
|
-
const WASM_THREADS_CHECK = new Uint8Array([
|
|
46
|
-
0, 97, 115, 109, 1, 0, 0, 0, 1, 4, 1, 96, 0, 0, 3, 2, 1, 0, 5,
|
|
47
|
-
4, 1, 3, 1, 1, 10, 11, 1, 9, 0, 65, 0, 254, 16, 2, 0, 26, 11
|
|
48
|
-
]);
|
|
49
|
-
const WASM_FEATURE_VALUES = {
|
|
50
|
-
'relaxedSimd': undefined,
|
|
51
|
-
'threads': undefined,
|
|
52
|
-
'jspi': undefined,
|
|
53
|
-
};
|
|
54
|
-
/** Returns true if JSPI is supported in the browser. */
|
|
55
|
-
export function isJspiSupported() {
|
|
56
|
-
// tslint:disable-next-line:ban-unsafe-reflection
|
|
57
|
-
return ('Suspending' in WebAssembly);
|
|
58
|
-
}
|
|
59
|
-
async function tryWasm(wasm) {
|
|
60
|
-
try {
|
|
61
|
-
await WebAssembly.instantiate(wasm);
|
|
62
|
-
return { supported: true };
|
|
63
|
-
}
|
|
64
|
-
catch (e) {
|
|
65
|
-
return { supported: false, error: e };
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
const WASM_FEATURE_CHECKS = {
|
|
69
|
-
'relaxedSimd': () => {
|
|
70
|
-
if (WASM_FEATURE_VALUES.relaxedSimd === undefined) {
|
|
71
|
-
WASM_FEATURE_VALUES.relaxedSimd = tryWasm(WASM_RELAXED_SIMD_CHECK);
|
|
72
|
-
}
|
|
73
|
-
return WASM_FEATURE_VALUES.relaxedSimd;
|
|
74
|
-
},
|
|
75
|
-
'threads': () => {
|
|
76
|
-
if (WASM_FEATURE_VALUES.threads === undefined) {
|
|
77
|
-
try {
|
|
78
|
-
if (typeof MessageChannel !== 'undefined') {
|
|
79
|
-
new MessageChannel().port1.postMessage(new SharedArrayBuffer(1));
|
|
80
|
-
}
|
|
81
|
-
WASM_FEATURE_VALUES.threads = tryWasm(WASM_THREADS_CHECK);
|
|
82
|
-
}
|
|
83
|
-
catch (e) {
|
|
84
|
-
WASM_FEATURE_VALUES.threads =
|
|
85
|
-
Promise.resolve({ supported: false, error: e });
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
return WASM_FEATURE_VALUES.threads;
|
|
89
|
-
},
|
|
90
|
-
'jspi': () => {
|
|
91
|
-
if (WASM_FEATURE_VALUES.jspi === undefined) {
|
|
92
|
-
try {
|
|
93
|
-
const supported = isJspiSupported();
|
|
94
|
-
WASM_FEATURE_VALUES.jspi = Promise.resolve({
|
|
95
|
-
supported,
|
|
96
|
-
error: supported ? undefined : new Error('JSPI is not supported')
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
catch (e) {
|
|
100
|
-
WASM_FEATURE_VALUES.jspi =
|
|
101
|
-
Promise.resolve({ supported: false, error: e });
|
|
102
|
-
}
|
|
103
|
-
}
|
|
104
|
-
return WASM_FEATURE_VALUES.jspi;
|
|
105
|
-
},
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* Check if a given WASM feature is supported.
|
|
109
|
-
*
|
|
110
|
-
* @param feature The feature to check.
|
|
111
|
-
* @return A promise that resolves to true if the feature is supported,
|
|
112
|
-
* false otherwise.
|
|
113
|
-
*/
|
|
114
|
-
export async function supportsFeature(feature) {
|
|
115
|
-
const check = WASM_FEATURE_CHECKS[feature]?.();
|
|
116
|
-
if (!check) {
|
|
117
|
-
// Then we don't know how to check for this feature.
|
|
118
|
-
throw new Error(`Unknown feature: ${feature}`);
|
|
119
|
-
}
|
|
120
|
-
return (await check).supported;
|
|
121
|
-
}
|
|
122
|
-
/**
|
|
123
|
-
* Throw an error if a given WASM feature is not supported.
|
|
124
|
-
*
|
|
125
|
-
* @param feature The feature to check.
|
|
126
|
-
* @throws An error if the feature is not supported.
|
|
127
|
-
*/
|
|
128
|
-
export async function throwIfFeatureNotSupported(feature) {
|
|
129
|
-
const check = WASM_FEATURE_CHECKS[feature]?.();
|
|
130
|
-
if (!check) {
|
|
131
|
-
// Then we don't know how to check for this feature.
|
|
132
|
-
throw new Error(`Unknown feature: ${feature}`);
|
|
133
|
-
}
|
|
134
|
-
const result = await check;
|
|
135
|
-
if (!result.supported) {
|
|
136
|
-
throw result.error;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
//# sourceMappingURL=wasm_feature_detect.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm_feature_detect.js","sourceRoot":"","sources":["../src/wasm_feature_detect.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH;;;;;;;;;;;;GAYG;AACH,MAAM,uBAAuB,GAAG,IAAI,UAAU,CAAC;IAC7C,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAG,CAAC,EAAE,CAAC,EAAG,CAAC,EAAE,CAAC,EAAI,CAAC,EAAG,CAAC,EAAG,EAAE,EAAE,CAAC,EAAI,CAAC,EAAG,GAAG,EAAE,CAAC,EAAI,CAAC,EAAE,CAAC;IACvE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAG,CAAC,EAAI,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAG,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE;CACzE,CAAC,CAAC;AAEH;;;;;;;;;;;GAWG;AACH,MAAM,kBAAkB,GAAG,IAAI,UAAU,CAAC;IACxC,CAAC,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,EAAG,CAAC,EAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAG,EAAE,EAAE,CAAC,EAAI,CAAC,EAAG,CAAC,EAAE,CAAC,EAAE,CAAC,EAAG,CAAC,EAAE,CAAC;IACpE,CAAC,EAAE,CAAC,EAAG,CAAC,EAAI,CAAC,EAAI,CAAC,EAAE,EAAE,EAAE,EAAE,E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C,MAAM,KAAK,GAAG,mBAAmB,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;IAC/C,IAAI,CAAC,KAAK,EAAE,CAAC;QACX,oDAAoD;QACpD,MAAM,IAAI,KAAK,CAAC,oBAAoB,OAAO,EAAE,CAAC,CAAC;IACjD,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC;IAC3B,IAAI,CAAC,MAAM,CAAC,SAAS,EAAE,CAAC;QACtB,MAAM,MAAM,CAAC,KAAM,CAAC;IACtB,CAAC;AACH,CAAC"}
|
package/dist/wasm_utils.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Copyright 2025 Google LLC
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing, software
|
|
11
|
-
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
12
|
-
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
13
|
-
* See the License for the specific language governing permissions and
|
|
14
|
-
* limitations under the License.
|
|
15
|
-
*/
|
|
16
|
-
import { EmscriptenVector } from './wasm_binding_types.js';
|
|
17
|
-
/**
|
|
18
|
-
* Convert an EmscriptenVector to a native array and delete the vector
|
|
19
|
-
*
|
|
20
|
-
* Deletes the EmscriptenVector when done. The caller must still delete the
|
|
21
|
-
* individual elements of the returned array.
|
|
22
|
-
*/
|
|
23
|
-
export declare function consumeEmscriptenVectorToArray<T>(vector: EmscriptenVector<T>): T[];
|
|
24
|
-
/**
|
|
25
|
-
* Fill an EmscriptenVector from an Iterable.
|
|
26
|
-
*
|
|
27
|
-
* The EmscriptenVector must be large enough to hold the data.
|
|
28
|
-
*/
|
|
29
|
-
export declare function fillEmscriptenVector<T>(data: Iterable<T>, vector: EmscriptenVector<T>): void;
|
|
30
|
-
//# sourceMappingURL=wasm_utils.d.ts.map
|
package/dist/wasm_utils.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"wasm_utils.d.ts","sourceRoot":"","sources":["../src/wasm_utils.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAC,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAEzD;;;;;GAKG;AACH,wBAAgB,8BAA8B,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,GACzE,CAAC,EAAE,CAON;AAED;;;;GAIG;AACH,wBAAgB,oBAAoB,CAAC,CAAC,EAClC,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,gBAAgB,CAAC,CAAC,CAAC,QAKjD"}
|