/** * Model Manifest Parser * Parses Ollama model manifests and manages model storage */ import { type ModelManifest, type ModelName, type ModelInfo } from '../types/index.js'; /** * Get the default models directory */ export declare function getModelsPath(): string; /** * Get the manifests directory */ export declare function getManifestsPath(modelsPath?: string): string; /** * Get the blobs directory */ export declare function getBlobsPath(modelsPath?: string): string; /** * Get the path to a manifest file for a model */ export declare function getManifestPath(name: ModelName, modelsPath?: string): string; /** * Get the path to a blob file by digest */ export declare function getBlobPath(digest: string, modelsPath?: string): string; /** * Read and parse a model manifest */ export declare function readManifest(name: string | ModelName, modelsPath?: string): Promise; /** * Get the model file path from a manifest */ export declare function getModelFilePath(manifest: ModelManifest, modelsPath?: string): string | null; /** * Get the projector file path from a manifest (for multimodal models) */ export declare function getProjectorPath(manifest: ModelManifest, modelsPath?: string): string | null; /** * Get adapter (LoRA) paths from a manifest */ export declare function getAdapterPaths(manifest: ModelManifest, modelsPath?: string): string[]; /** * Get the template from a manifest */ export declare function getTemplate(manifest: ModelManifest, modelsPath?: string): Promise; /** * Get the system prompt from a manifest */ export declare function getSystemPrompt(manifest: ModelManifest, modelsPath?: string): Promise; /** * Get model parameters from a manifest */ export declare function getParameters(manifest: ModelManifest, modelsPath?: string): Promise | null>; /** * List all installed models */ export declare function listModels(modelsPath?: string): Promise; /** * Check if a model exists */ export declare function modelExists(name: string | ModelName, modelsPath?: string): Promise; /** * Get full model info */ export declare function getModelInfo(name: string | ModelName, modelsPath?: string): Promise; /** * Calculate total size of a model (all layers) */ export declare function getModelTotalSize(manifest: ModelManifest, modelsPath?: string): Promise; //# sourceMappingURL=manifest.d.ts.map