/** Base class for embeddings errors, each with a stable `code`. */ export declare class EmbeddingError extends Error { /** Stable code, such as `EMBEDDING_VALIDATION_ERROR`. */ readonly code: string; /** The underlying error. */ readonly cause?: unknown | undefined; constructor(message: string, /** Stable code, such as `EMBEDDING_VALIDATION_ERROR`. */ code: string, /** The underlying error. */ cause?: unknown | undefined); } /** Raised when a request is invalid before anything is sent. */ export declare class EmbeddingValidationError extends EmbeddingError { constructor(message: string, cause?: unknown); } /** Raised when an embeddings provider fails. */ export declare class EmbeddingProviderError extends EmbeddingError { /** The provider. */ readonly provider?: string | undefined; constructor(message: string, /** The provider. */ provider?: string | undefined, cause?: unknown); } /** Raised when no provider, or no provider by the requested name, is registered. */ export declare class EmbeddingProviderNotFoundError extends EmbeddingProviderError { constructor(provider?: string); } /** * A requested option the target model or adapter cannot honor. * * Embeddings refuse rather than drop: a vector produced with different dimensions or a different * input type is silently incompatible with the vectors already in a store, and the mismatch only * surfaces later as bad retrieval. */ export declare class EmbeddingCapabilityError extends EmbeddingProviderError { /** The unsupported option, such as `dimensions` or `inputType`. */ readonly option: string; /** The value requested. */ readonly requestedValue?: unknown | undefined; /** Always `EMBEDDING_CAPABILITY_ERROR`. */ readonly code = "EMBEDDING_CAPABILITY_ERROR"; constructor(provider: string, /** The unsupported option, such as `dimensions` or `inputType`. */ option: string, /** The value requested. */ requestedValue?: unknown | undefined, detail?: string); } /** * Raised when a provider's response does not have the shape the adapter expects, such as the wrong * number of vectors. */ export declare class EmbeddingProviderResponseError extends EmbeddingProviderError { /** Always `EMBEDDING_PROVIDER_RESPONSE_ERROR`. */ readonly code = "EMBEDDING_PROVIDER_RESPONSE_ERROR"; constructor(provider: string, message: string, cause?: unknown); } /** Raised when a model is not in the embeddings registry and no provider was named. */ export declare class EmbeddingModelNotFoundError extends EmbeddingError { /** The model looked up. */ readonly model: string; constructor( /** The model looked up. */ model: string); }