import type { LocalModelDefinition, LocalModelModelRegistry, LocalModelPipelineLoadOptions, LocalModelRuntime, LocalModelRuntimeConfig, LocalModelSupportedRuntime } from "./types.js"; export interface InternalLocalModelRuntimeConfig extends LocalModelRuntimeConfig { serverWorkerEntry?: string; } export interface ResolvedLocalModelRuntimeConfig extends Omit { runtime: LocalModelSupportedRuntime; models: LocalModelModelRegistry; cacheDir: string; allowRemoteModels: boolean; allowLocalModels: boolean; serverPrewarm: boolean | string[]; browserPrewarm: boolean | string[]; } export declare function detectLocalModelRuntime(runtime?: LocalModelRuntime): LocalModelSupportedRuntime; export declare function resolveCacheDir(cacheDir?: string): string; export declare function resolveRuntimeConfig(config?: InternalLocalModelRuntimeConfig): ResolvedLocalModelRuntimeConfig; export declare function applyLocalModelEnvironment(config: Pick): Promise; export declare function canUseServerWorkerForRuntime(runtime: LocalModelSupportedRuntime): runtime is "node" | "bun" | "deno"; export declare function resolveModelDefinition(name: string, runtimeConfig: InternalLocalModelRuntimeConfig | undefined, loadOptions?: LocalModelPipelineLoadOptions): LocalModelDefinition;