export declare const BATCH_REPROCESS_TTL_MS: number; export declare const DEFAULT_BATCH_REPROCESS_PATH = "/api/transcriber"; export type BatchReprocessState = "unsupported" | "waiting_for_stop" | "unconfigured" | "ready" | "running" | "expired" | "error"; export type BatchReprocessErrorCode = "UNSUPPORTED_PROVIDER" | "REPROCESS_IN_PROGRESS" | "SESSION_NOT_STOPPED" | "NOT_CONFIGURED" | "AUDIO_NOT_AVAILABLE" | "AUDIO_EXPIRED" | "HTTP_ERROR" | "INVALID_RESPONSE" | "CORS_BLOCKED"; export interface BatchReprocessStatus { state: BatchReprocessState; supported: boolean; configured: boolean; available: boolean; expiresAt: number | null; remainingMs: number | null; lastStartedAt: number | null; lastCompletedAt: number | null; lastError: BatchReprocessError | null; } export interface BatchReprocessConfig { endpoint?: string; parseResponse?: (response: Response) => Promise; } export interface ResolvedWhisperConnectionContext { realtimeUrl: string; batchBaseUrl: string; batchDefaultUrl: string; authToken?: string; externalId?: string; transcriptionLanguage?: string; translationLanguage?: string; headers?: Record; } interface BatchReprocessErrorOptions { cause?: unknown; message?: string; status?: number | null; } export declare class BatchReprocessError extends Error { readonly code: BatchReprocessErrorCode; readonly cause: unknown; readonly status: number | null; constructor(code: BatchReprocessErrorCode, options?: BatchReprocessErrorOptions); } interface BatchReprocessStatusInput { state: BatchReprocessState; available?: boolean; configured?: boolean; expiresAt?: number | null; lastCompletedAt?: number | null; lastError?: BatchReprocessError | null; lastStartedAt?: number | null; now?: number; supported?: boolean; } export declare const createBatchReprocessStatus: (input: BatchReprocessStatusInput) => BatchReprocessStatus; export declare const refreshBatchReprocessStatus: (status: BatchReprocessStatus, now?: number) => BatchReprocessStatus; export declare const getBatchReprocessRemainingTime: (status: BatchReprocessStatus, now?: number) => number | null; export declare const createUnsupportedBatchReprocessStatus: () => BatchReprocessStatus; export {}; //# sourceMappingURL=batchReprocess.d.ts.map