import { EventEmitter } from "node:events"; import { ListenLiveClient, LiveSchema } from "@deepgram/sdk"; import { LiveClientMessage } from "./types.js"; import { Message } from "../../../interfaces/message/message.js"; import { STT, STTEvents } from "../../../interfaces/stt/stt.js"; import { Mutex } from "../../../commons/mutex.js"; export interface DeepgramSTTOptions { apiKey: string; liveSchema: LiveSchema; queueSizeLimit?: number; } export declare class DeepgramSTT extends EventEmitter implements STT { protected listenLiveClient: ListenLiveClient; protected transcript: string; protected speechStarted: boolean; protected liveSchema: LiveSchema; protected apiKey: string; protected mutex: Mutex; constructor({ apiKey, liveSchema, queueSizeLimit }: DeepgramSTTOptions); protected closeConnection: () => void; protected createConnection: () => ListenLiveClient; protected onClientMessage: (message: LiveClientMessage) => void; protected onClientUnhandled: (...args: unknown[]) => void; protected onClientError: (err: unknown) => void; protected onClientMetaData: (...args: unknown[]) => void; protected onClientClose: (...args: unknown[]) => void; protected onClientOpen: (...args: unknown[]) => void; post: (message: Message) => void; dispose: () => void; }