import { z } from "zod"; /** * Canonical model type values for internal SDK use. * Format: `engine-usecase` (e.g., "llamacpp-completion") * Use dot-accessor syntax: `ModelType.llamacppCompletion` */ export declare const ModelType: { readonly llamacppCompletion: "llamacpp-completion"; readonly whispercppTranscription: "whispercpp-transcription"; readonly bciWhispercppTranscription: "bci-whispercpp-transcription"; readonly llamacppEmbedding: "llamacpp-embedding"; readonly nmtcppTranslation: "nmtcpp-translation"; readonly onnxTts: "onnx-tts"; readonly ttsGgml: "tts-ggml"; readonly parakeetTranscription: "parakeet-transcription"; readonly onnxOcr: "onnx-ocr"; readonly sdcppGeneration: "sdcpp-generation"; readonly ggmlVla: "ggml-vla"; readonly ggmlClassification: "ggml-classification"; }; /** * Alias mappings for backward compatibility. * Maps old names to canonical values. */ export declare const ModelTypeAliases: { readonly llm: "llamacpp-completion"; readonly whisper: "whispercpp-transcription"; readonly bci: "bci-whispercpp-transcription"; readonly embeddings: "llamacpp-embedding"; readonly nmt: "nmtcpp-translation"; readonly parakeet: "parakeet-transcription"; readonly tts: "tts-ggml"; readonly ocr: "onnx-ocr"; readonly diffusion: "sdcpp-generation"; readonly vla: "ggml-vla"; readonly classification: "ggml-classification"; }; export type CanonicalModelType = (typeof ModelType)[keyof typeof ModelType]; export type AliasKey = keyof typeof ModelTypeAliases; export type ModelTypeInput = CanonicalModelType | AliasKey; /** * All valid model types: canonical names + aliases. * * Canonical names follow `engine-usecase` format (e.g., "llamacpp-completion"). * Aliases resolve to canonical names for backward compatibility. * * @example * ```typescript * // Using alias (backward compatible) * loadModel({ modelSrc: "...", modelType: MODEL_TYPES.nmt }); * // MODEL_TYPES.nmt resolves to "nmtcpp-translation" * * // Using canonical name directly * loadModel({ modelSrc: "...", modelType: MODEL_TYPES.nmtcppTranslation }); * ``` */ export declare const PUBLIC_MODEL_TYPES: { readonly llm: "llamacpp-completion"; readonly whisper: "whispercpp-transcription"; readonly bci: "bci-whispercpp-transcription"; readonly embeddings: "llamacpp-embedding"; readonly nmt: "nmtcpp-translation"; readonly parakeet: "parakeet-transcription"; readonly tts: "tts-ggml"; readonly ocr: "onnx-ocr"; readonly diffusion: "sdcpp-generation"; readonly vla: "ggml-vla"; readonly classification: "ggml-classification"; readonly llamacppCompletion: "llamacpp-completion"; readonly whispercppTranscription: "whispercpp-transcription"; readonly bciWhispercppTranscription: "bci-whispercpp-transcription"; readonly llamacppEmbedding: "llamacpp-embedding"; readonly nmtcppTranslation: "nmtcpp-translation"; readonly onnxTts: "onnx-tts"; readonly ttsGgml: "tts-ggml"; readonly parakeetTranscription: "parakeet-transcription"; readonly onnxOcr: "onnx-ocr"; readonly sdcppGeneration: "sdcpp-generation"; readonly ggmlVla: "ggml-vla"; readonly ggmlClassification: "ggml-classification"; }; /** Schema accepting both canonical and alias model type inputs */ export declare const modelTypeInputSchema: z.ZodEnum<{ embeddings: "embeddings"; diffusion: "diffusion"; tts: "tts"; ocr: "ocr"; vla: "vla"; "llamacpp-completion": "llamacpp-completion"; "whispercpp-transcription": "whispercpp-transcription"; "bci-whispercpp-transcription": "bci-whispercpp-transcription"; "llamacpp-embedding": "llamacpp-embedding"; "nmtcpp-translation": "nmtcpp-translation"; "onnx-tts": "onnx-tts"; "tts-ggml": "tts-ggml"; "parakeet-transcription": "parakeet-transcription"; "onnx-ocr": "onnx-ocr"; "sdcpp-generation": "sdcpp-generation"; "ggml-vla": "ggml-vla"; "ggml-classification": "ggml-classification"; llm: "llm"; whisper: "whisper"; bci: "bci"; nmt: "nmt"; parakeet: "parakeet"; classification: "classification"; }>; /** Schema that transforms input to canonical model type */ export declare const modelTypeSchema: z.ZodPipe, z.ZodTransform<"llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification", "embeddings" | "diffusion" | "tts" | "ocr" | "vla" | "llamacpp-completion" | "whispercpp-transcription" | "bci-whispercpp-transcription" | "llamacpp-embedding" | "nmtcpp-translation" | "onnx-tts" | "tts-ggml" | "parakeet-transcription" | "onnx-ocr" | "sdcpp-generation" | "ggml-vla" | "ggml-classification" | "llm" | "whisper" | "bci" | "nmt" | "parakeet" | "classification">>; /** * Normalize model type input to canonical form. * Custom plugin types (not in built-ins) are returned as-is. */ export declare function normalizeModelType(input: string): string; /** * Type guard to check if a string is a canonical (built-in) model type. * Returns false for custom plugin types. */ export declare function isCanonicalModelType(input: string): input is CanonicalModelType; /** * Check if input is a built-in alias (not canonical or custom). * Returns false for custom plugin types. */ export declare function isModelTypeAlias(input: string): boolean; /** * LLM/Completion model type schema. * - Alias: `"llm"` → resolves to `"llamacpp-completion"` * - Canonical: `"llamacpp-completion"` */ export declare const llmModelTypeSchema: z.ZodEnum<{ "llamacpp-completion": "llamacpp-completion"; llm: "llm"; }>; export type LlmModelTypeInput = z.infer; /** * Whisper/Transcription model type schema. * - Alias: `"whisper"` → resolves to `"whispercpp-transcription"` * - Canonical: `"whispercpp-transcription"` */ export declare const whisperModelTypeSchema: z.ZodEnum<{ "whispercpp-transcription": "whispercpp-transcription"; whisper: "whisper"; }>; export type WhisperModelTypeInput = z.infer; /** * BCI/Transcription model type schema. * - Alias: `"bci"` → resolves to `"bci-whispercpp-transcription"` * - Canonical: `"bci-whispercpp-transcription"` */ export declare const bciModelTypeSchema: z.ZodEnum<{ "bci-whispercpp-transcription": "bci-whispercpp-transcription"; bci: "bci"; }>; export type BciModelTypeInput = z.infer; /** * Parakeet/Transcription model type schema. * - Alias: `"parakeet"` → resolves to `"parakeet-transcription"` * - Canonical: `"parakeet-transcription"` */ export declare const parakeetModelTypeSchema: z.ZodEnum<{ "parakeet-transcription": "parakeet-transcription"; parakeet: "parakeet"; }>; export type ParakeetModelTypeInput = z.infer; /** * Embeddings model type schema. * - Alias: `"embeddings"` → resolves to `"llamacpp-embedding"` * - Canonical: `"llamacpp-embedding"` */ export declare const embeddingsModelTypeSchema: z.ZodEnum<{ embeddings: "embeddings"; "llamacpp-embedding": "llamacpp-embedding"; }>; export type EmbeddingsModelTypeInput = z.infer; /** * NMT/Translation model type schema. * - Alias: `"nmt"` → resolves to `"nmtcpp-translation"` * - Canonical: `"nmtcpp-translation"` */ export declare const nmtModelTypeSchema: z.ZodEnum<{ "nmtcpp-translation": "nmtcpp-translation"; nmt: "nmt"; }>; export type NmtModelTypeInput = z.infer; /** * TTS model type schema. * - Alias: `"tts"` → resolves to `"tts-ggml"` * - Canonical: `"tts-ggml"` */ export declare const ttsModelTypeSchema: z.ZodEnum<{ tts: "tts"; "tts-ggml": "tts-ggml"; }>; export type TtsModelTypeInput = z.infer; /** * OCR model type schema. * - Alias: `"ocr"` → resolves to `"onnx-ocr"` * - Canonical: `"onnx-ocr"` */ export declare const ocrModelTypeSchema: z.ZodEnum<{ ocr: "ocr"; "onnx-ocr": "onnx-ocr"; }>; export type OcrModelTypeInput = z.infer; /** * Diffusion/Image Generation model type schema. * - Alias: `"diffusion"` → resolves to `"sdcpp-generation"` * - Canonical: `"sdcpp-generation"` */ export declare const diffusionModelTypeSchema: z.ZodEnum<{ diffusion: "diffusion"; "sdcpp-generation": "sdcpp-generation"; }>; export type DiffusionModelTypeInput = z.infer; /** * VLA (vision-language-action) model type schema. * - Alias: `"vla"` → resolves to `"ggml-vla"` * - Canonical: `"ggml-vla"` */ export declare const vlaModelTypeSchema: z.ZodEnum<{ vla: "vla"; "ggml-vla": "ggml-vla"; }>; export type VlaModelTypeInput = z.infer; /** * Image Classification model type schema. * - Alias: `"classification"` → resolves to `"ggml-classification"` * - Canonical: `"ggml-classification"` */ export declare const classificationModelTypeSchema: z.ZodEnum<{ "ggml-classification": "ggml-classification"; classification: "classification"; }>; export type ClassificationModelTypeInput = z.infer; //# sourceMappingURL=model-types.d.ts.map