import type { StreamingSttOpenRequest, StreamingSttSession } from '../media-understanding/types.js'; import type { SpeechStreamSession, SpeechSynthesisStreamResult } from './tts/speech-provider-types.js'; export declare class PlatformVoiceError extends Error { readonly status?: number | undefined; readonly code?: string | undefined; constructor(message: string, status?: number | undefined, code?: string | undefined); get clientMessage(): string; } export declare function openPlatformStt(request: StreamingSttOpenRequest): Promise; type PlatformTtsRequest = { baseUrl: string; apiKey: string; voice: string; text: string; instructions?: string; signal: AbortSignal; timeoutMs: number; }; export declare function openPlatformTts(request: PlatformTtsRequest): Promise; /** Hides the first cloud handshake behind Agent generation without sending speculative text. */ export declare function openPlatformTtsSession(request: Omit): Promise; export {};