import type { VoiceAudioArtifact, VoiceProvider, VoiceProviderStatus } from '../types.js';
export declare function trimToUndefined(value: unknown): string | undefined;
export declare function asFiniteNumber(value: unknown): number | undefined;
export declare function asRecord(value: unknown): Record<string, unknown> | undefined;
export declare function readFirstEnv(envVars: readonly string[]): string | null;
export declare function normalizeBaseUrl(value: string | null | undefined, fallback: string): string;
export declare function resolveAudioInput(audio: VoiceAudioArtifact): Promise<{
    buffer: Uint8Array;
    mimeType: string;
}>;
export declare function buildStatus(id: string, label: string, capabilities: VoiceProvider['capabilities'], configured: boolean, detail: string, metadata?: Record<string, unknown>): VoiceProviderStatus;
export declare function inferMimeFromExtension(ext: string): string;
export declare function inferExtFromOutputFormat(outputFormat: string): string;
export declare function inferFilename(audio: VoiceAudioArtifact, fallbackExt: string): string;
export declare function mimeTypeForVoiceFormat(format: string): string;
export declare function estimateConfidenceFromAvgLogprob(value: unknown): number | undefined;
//# sourceMappingURL=shared.d.ts.map