import { a as ForwardResult, c as KvSnapshot, d as ManifestArch, f as ManifestRef, i as EngineOptions, l as LoadProgress, m as TokenLogprobs, n as Engine, o as GenerateOptions, p as ManifestTensor, r as EngineCapabilities, s as GenerateResult, t as DeviceLostInfo, u as Manifest } from "./types-CBW7T_3s.js"; //#region src/engine.d.ts /** Load a 1-bit model and return an {@link Engine}. Pass a model URL string for defaults. */ declare function createEngine(options: EngineOptions | string): Promise; //#endregion //#region src/errors.d.ts /** Thrown when WebGPU is unavailable: no `navigator.gpu` (unsupported browser, or a * non-secure context) or no adapter could be acquired. Catch this to render a * "your browser doesn't support WebGPU yet" fallback instead of crashing. */ declare class WebGPUUnavailableError extends Error { readonly name = "WebGPUUnavailableError"; constructor(message: string); } /** Thrown when the GPU reports out-of-memory while the engine allocates weights or grows the * KV cache. Without this check the allocation "succeeds" with invalid buffers and every later * generate() returns garbage. Catch it to fall back (smaller maxSeqLen, or a no-LLM mode). */ declare class GpuOutOfMemoryError extends Error { readonly name = "GpuOutOfMemoryError"; constructor(message: string); } //#endregion export { type DeviceLostInfo, type Engine, type EngineCapabilities, type EngineOptions, type ForwardResult, type GenerateOptions, type GenerateResult, GpuOutOfMemoryError, type KvSnapshot, type LoadProgress, type Manifest, type ManifestArch, type ManifestRef, type ManifestTensor, type TokenLogprobs, WebGPUUnavailableError, createEngine }; //# sourceMappingURL=index.d.ts.map