import type { UsageStore } from "@pie-lab/storage";
import { type GatewayAudioUsageContext } from "./audio-usage.ts";
export type GatewaySpeechProvider = "local" | "openai" | "custom";
export interface GatewaySpeechResult {
    path?: string;
    error?: string;
    skipped?: boolean;
    skippedReason?: string;
    provider?: GatewaySpeechProvider;
    model?: string;
    voice?: string;
    endpoint?: string;
    format?: string;
    fileSizeBytes?: number;
    maxChars?: number;
    audioDurationSeconds?: number;
    durationMs?: number;
}
export declare function getGatewayTtsOutputDir(env?: NodeJS.ProcessEnv): string;
export declare function getGatewayTtsMaxChars(env?: NodeJS.ProcessEnv): number;
export declare function synthesizeGatewaySpeech(options: {
    text: string;
    model?: string;
    voice?: string;
    format?: string;
    usageStore?: UsageStore;
    usageContext?: GatewayAudioUsageContext;
    env?: NodeJS.ProcessEnv;
    fetchImpl?: typeof fetch;
}): Promise<GatewaySpeechResult>;
//# sourceMappingURL=speech.d.ts.map