import fs from "fs"; export declare const ASR_PINNED_RUNTIME = "faster-whisper==1.2.1"; export declare const ASR_PINNED_CTRANSLATE2 = "ctranslate2==4.8.0"; export declare const ASR_STATE_VERSION = 2; export declare const ASR_EXECUTION_PROFILES: readonly [{ readonly device: "cpu"; readonly computeType: "int8"; }, { readonly device: "cuda"; readonly computeType: "float16"; }]; export type AsrExecutionProfile = (typeof ASR_EXECUTION_PROFILES)[number]; export declare const ASR_CPU_EXECUTION_PROFILE: { readonly device: "cpu"; readonly computeType: "int8"; }; export declare const ASR_CUDA_EXECUTION_PROFILE: { readonly device: "cuda"; readonly computeType: "float16"; }; export declare const ASR_DEVICE_PREFERENCES: readonly ["auto", "cpu", "cuda"]; export type AsrDevicePreference = (typeof ASR_DEVICE_PREFERENCES)[number]; export type AsrDeviceReadiness = "not_ready" | "migration_pending" | "ready"; export type AsrMigrationStatus = "pending" | "completed"; export declare const ASR_FAILURE_CATEGORIES: readonly ["no_nvidia_gpu", "cuda_runtime_missing", "runtime_version_mismatch", "model_probe_failed"]; export type AsrFailureCategory = (typeof ASR_FAILURE_CATEGORIES)[number]; export declare const ASR_MODEL_SPECS: readonly [{ readonly key: "tiny"; readonly repository: "Systran/faster-whisper-tiny"; readonly revision: "d90ca5fe260221311c53c58e660288d3deb8d356"; readonly approximateMB: 78.2; }, { readonly key: "base"; readonly repository: "Systran/faster-whisper-base"; readonly revision: "ebe41f70d5b6dfa9166e2c581c45c9c0cfc57b66"; readonly approximateMB: 148; }, { readonly key: "small"; readonly repository: "Systran/faster-whisper-small"; readonly revision: "536b0662742c02347bc0e980a01041f333bce120"; readonly approximateMB: 486; }]; export type AsrModelKey = (typeof ASR_MODEL_SPECS)[number]["key"]; export type AsrModelSpec = (typeof ASR_MODEL_SPECS)[number]; export declare const ASR_PINNED_MODEL: "Systran/faster-whisper-small"; export declare const ASR_PINNED_REVISION: "536b0662742c02347bc0e980a01041f333bce120"; export declare function resolveModelSpec(key: AsrModelKey): AsrModelSpec; export declare function isAllowlistedModel(repository: string, revision: string): boolean; export type AsrStateKind = "not_installed" | "incomplete" | "ready"; export interface AsrState { kind: AsrStateKind; version?: number; runtime?: string; model?: string; revision?: string; modelKey?: AsrModelKey; executionProfile?: AsrExecutionProfile; deviceReadiness?: AsrDeviceReadiness; migrationStatus?: AsrMigrationStatus; failureCategory?: AsrFailureCategory; } export interface AsrStateWriteOptions { executionProfile?: AsrExecutionProfile; failureCategory?: AsrFailureCategory; } export declare function modelKeyForRepo(repository: string, revision: string): AsrModelKey | null; export interface AsrPaths { root: string; venv: string; model: string; stateFile: string; } export declare function deriveAsrPaths(base?: string): AsrPaths; export declare function resolveExecutionProfile(device: unknown, computeType: unknown): AsrExecutionProfile | undefined; export declare function resolveDevicePreference(value: unknown): AsrDevicePreference | undefined; export declare function readAsrState(stateFile: string, readFileSync?: typeof fs.readFileSync, existsSync?: typeof fs.existsSync, lstatSync?: typeof fs.lstatSync): AsrState; export declare function writeAsrState(stateFile: string, modelKey?: AsrModelKey, options?: AsrStateWriteOptions, writeFileSync?: typeof fs.writeFileSync, renameSync?: typeof fs.renameSync, unlinkSync?: typeof fs.unlinkSync, mkdirSync?: typeof fs.mkdirSync, randomId?: () => string, lstatSync?: typeof fs.lstatSync, chmodSync?: typeof fs.chmodSync): void; //# sourceMappingURL=state.d.ts.map