/** * @octomil/browser — Model manager * * Downloads an ONNX model from a URL or the Octomil model registry, * caches it locally, and returns the raw `ArrayBuffer` for the * inference engine to consume. */ import type { ModelCache } from "./cache.js"; import type { OctomilOptions } from "./types.js"; export declare class ModelManager { private readonly modelId; private readonly serverUrl; private readonly apiKey; private readonly onProgress; private readonly cache; constructor(options: OctomilOptions, cache: ModelCache); /** * Resolve the model URL, check the cache, download if needed, * and return the ONNX model bytes. */ load(): Promise; /** Check whether the model is already cached. */ isCached(): Promise; /** Remove the cached model. */ clearCache(): Promise; /** Get cache info for the model. */ getCacheInfo(): Promise; /** * If `modelId` looks like a URL (starts with http:// or https://) use it * directly. Otherwise treat it as a registry model name and resolve via * the Octomil server. */ resolveModelUrl(): Promise; private fetchResolverUrl; private buildHeaders; private download; private delay; private validate; } //# sourceMappingURL=model-manager.d.ts.map