export { isDeepgramFluxModel } from './deepgram-compatibility.js'; export declare const DEEPGRAM_API_HOST = "api.deepgram.com"; export declare const DEEPGRAM_DEFAULT_MODEL = "nova-3"; export declare const DEEPGRAM_RECORDING_TIMEOUT_MS = 120000; export declare const DEEPGRAM_REALTIME_OPEN_TIMEOUT_MS = 15000; export declare const DEEPGRAM_REALTIME_FINISH_TIMEOUT_MS = 5000; export interface DeepgramRecordingAsrOptions { readonly audio: Uint8Array; readonly mimeType: string; readonly language?: string; readonly endpoint?: string; readonly model?: string; readonly credential: string; readonly signal?: AbortSignal; readonly fetch?: typeof globalThis.fetch; } export interface DeepgramRealtimeAsrOptions { readonly apiKey: string; readonly model?: string; readonly language?: string; readonly endpoint?: string; readonly signal?: AbortSignal; readonly webSocketFactory?: (url: string, protocols?: string | string[]) => DeepgramWebSocket; } export interface DeepgramRealtimeTranscript { readonly text: string; readonly final: boolean; } export interface DeepgramWebSocket { readonly readyState: number; binaryType: string; send(data: ArrayBuffer | ArrayBufferView | string): void; close(code?: number, reason?: string): void; addEventListener(type: string, listener: (event: DeepgramWebSocketEvent) => void): void; removeEventListener(type: string, listener: (event: DeepgramWebSocketEvent) => void): void; } export interface DeepgramWebSocketEvent { readonly data?: unknown; readonly error?: unknown; readonly code?: number; readonly reason?: string; } export declare function deepgramListenUrl(options: { endpoint?: string; model?: string; language?: string; smartFormat?: boolean; punctuate?: boolean; }): string; export declare function deepgramRealtimeUrl(options: { endpoint?: string; model?: string; language?: string; smartFormat?: boolean; punctuate?: boolean; }): string; export declare function extractDeepgramTranscript(response: unknown): string; export declare function deepgramErrorDetail(body: unknown, status: number): string; export declare function transcribeDeepgramAsr(options: DeepgramRecordingAsrOptions): Promise; export declare class DeepgramRealtimeAsrSession { private readonly options; private socket; private opened; private closed; private ended; private final; private receivedFinalResult; private completedSentences; private interimSentence; private transcript; private lastError; private detached; private readonly waiters; constructor(options: DeepgramRealtimeAsrOptions); open(signal?: AbortSignal): Promise; sendAudio(audio: Uint8Array, signal?: AbortSignal): Promise; finish(signal?: AbortSignal): Promise; snapshot(): DeepgramRealtimeTranscript; close(): void; private readonly onOpen; private readonly onMessage; private readonly onError; private readonly onClose; private rebuildTranscript; private requireSocket; private setError; private notifyWaiters; private waitFor; }