export type EmbedderLoadErrorKind = 'not-found' | 'no-onnx' | 'offline' | 'unknown'; export declare class EmbedderLoadError extends Error { readonly kind: EmbedderLoadErrorKind; readonly cause?: unknown | undefined; constructor(kind: EmbedderLoadErrorKind, message: string, cause?: unknown | undefined); } /** * Map a raw transformers.js / network error into an actionable EmbedderLoadError. * Regexes tested against @huggingface/transformers v4.2.0's actual throw shapes. */ export declare function classifyLoadError(modelId: string, err: unknown): EmbedderLoadError;