import type { UsageStore } from "@pie-lab/storage";
import { type GatewayAudioUsageContext } from "./audio-usage.ts";
export type GatewayTranscriptionProvider = "local" | "openai" | "custom";
export interface GatewayTranscriptionResult {
    text?: string;
    error?: string;
    skipped?: boolean;
    skippedReason?: string;
    provider?: GatewayTranscriptionProvider;
    model?: string;
    endpoint?: string;
    cached?: boolean;
    cacheKey?: string;
    fileSizeBytes?: number;
    maxSizeBytes?: number;
    audioDurationSeconds?: number;
    durationMs?: number;
}
export declare function getGatewaySttCacheDir(env?: NodeJS.ProcessEnv): string;
export declare function getGatewaySttMaxBytes(env?: NodeJS.ProcessEnv): number;
export declare function transcribeGatewayAudio(options: {
    filePath: string;
    mimeType?: string;
    audioDurationSeconds?: number;
    usageStore?: UsageStore;
    usageContext?: GatewayAudioUsageContext;
    env?: NodeJS.ProcessEnv;
    fetchImpl?: typeof fetch;
}): Promise<GatewayTranscriptionResult>;
//# sourceMappingURL=transcription.d.ts.map