/** * Model configuration and registry for local models. * Mirrors Python SDK's voyageai/local/model_registry.py */ import type * as VoyageAI from "../api/index.mjs"; export interface LocalModelConfig { /** GGUF model file on HuggingFace Hub, as a node-llama-cpp model URI */ ggufModelUri: string; /** Default embedding dimension */ defaultDimension: number; /** Supported Matryoshka dimensions */ supportedDimensions: number[]; /** Supported output precisions */ supportedPrecisions: string[]; /** Maximum token context length */ maxTokens: number; /** * Instruction prompts prepended per input type. Copied from the official model's * config_sentence_transformers.json, which the Python SDK reads at load time; * the GGUF file doesn't include it. */ prompts: Partial>; } export declare const SUPPORTED_MODELS: Record; export declare function isLocalModel(model: string): boolean; export declare function getModelConfig(model: string): LocalModelConfig; /** Prompt to prepend for the given input type, or "" when none applies (no inputType). */ export declare function getPromptForInputType(config: LocalModelConfig, inputType?: VoyageAI.EmbedRequestInputType): string; export declare function validateDimension(config: LocalModelConfig, dimension?: number): number; export declare function validatePrecision(config: LocalModelConfig, precision?: string): string | undefined;