import type { Pcm } from './audio.js'; export interface SamiCreds { accessKey: string; secretKey: string; appkey: string; /** Optional endpoint overrides. Default to the standard SAMI endpoints; set * these (or SAMI_TOKEN_URL / SAMI_WS_URL env) only to point elsewhere. */ tokenUrl?: string; wsUrl?: string; } export interface VoiceProviderEffectOptions { beforeProviderEffect?: () => void | Promise; } /** Mint a short-lived SAMI token (default 24h). Two-step HMAC: sign the * canonical string with the SecretKey, then HMAC an empty body with that. */ export declare function mintSamiToken(creds: SamiCreds, expiration?: number, effects?: VoiceProviderEffectOptions): Promise; export interface SamiSynthOpts { speaker: string; /** 1.0 = normal. bigtts voices honour speech_rate via post_process. */ rate?: number; timeoutMs?: number; } /** Synthesize text → raw PCM (s16le mono, 24kHz) via the tts.sync WebSocket. */ export declare function samiSynthesizePcm(creds: SamiCreds, text: string, opts: SamiSynthOpts, effects?: VoiceProviderEffectOptions): Promise; //# sourceMappingURL=sami.d.ts.map