import type { TranscriptionSegment, WhisperTranscriptionResult } from "./types.js";
type Env = Record<string, string | undefined>;
export declare const OPENAI_DIARIZATION_MODEL = "gpt-4o-transcribe-diarize";
export declare class OpenAiTranscriptionHttpError extends Error {
    name: string;
    readonly status: number;
    readonly retryAfterMs: number | null;
    constructor(status: number, retryAfterMs: number | null, detail: string | null);
}
export declare function transcribeWithOpenAi(bytes: Uint8Array, mediaType: string, filename: string | null, apiKey: string, options?: {
    baseUrl?: string | null;
    env?: Env;
}): Promise<string | null>;
export declare function transcribeFileWithOpenAiDiarization({ filePath, mediaType, filename, apiKey, options, }: {
    filePath: string;
    mediaType: string;
    filename: string | null;
    apiKey: string;
    options?: {
        baseUrl?: string | null;
        env?: Env;
        allowEmpty?: boolean;
    };
}): Promise<WhisperTranscriptionResult>;
export declare function parseOpenAiDiarizedSegments(segments: unknown): TranscriptionSegment[];
export declare function shouldRetryOpenAiViaFfmpeg(error: Error): boolean;
export {};
