import { u as Manifest } from "./types-CBW7T_3s.js"; //#region src/gguf.d.ts interface GgufModel { manifest: Manifest; aux: Uint8Array; /** The GGUF URL itself - the weights stream from it byte-for-byte unchanged. */ dataUrl: string; } interface FromGgufOptions { /** Fetch `len` bytes at `off`. Override for caching or non-HTTP sources. Default: `fetch` * with a `Range` header (and a stream-and-cancel fallback for servers that ignore ranges). */ fetchRange?: (url: string, off: number, len: number) => Promise; /** Parse abort cap: headers larger than this fail loudly. Default 64 MiB. */ maxHeaderBytes?: number; } /** The two expansion tables the kernels use, generated from their defining property: * LSB-first sign bits -> per-weight codes around the recipe midpoints (2-bit: {1,3}, * 4-bit: {7,9}). Byte-identical to the tables the ONNX exports carry. */ declare function ggufLuts(): Uint8Array; /** Parse a GGUF header already in memory (e.g. from a File). Grows nothing - the buffer must * contain the full header (weights past it are not needed). */ declare function fromGgufBytes(buf: ArrayBuffer, dataFile: string): { manifest: Manifest; aux: Uint8Array; }; /** Fetch and parse a GGUF header; returns `{ manifest, aux, dataUrl }` for createEngine. * Only the header is transferred, progressively: 1 MiB first, then EXTENSION ranges (2x * growth) appended to the kept prefix - total transfer stays under 2x the header size. */ declare function fromGguf(url: string, options?: FromGgufOptions): Promise; //#endregion export { FromGgufOptions, GgufModel, fromGguf, fromGgufBytes, ggufLuts }; //# sourceMappingURL=gguf.d.ts.map