import type { CallId, CallRecord } from "../types.js"; import type { VoiceCallConfig } from "../config.js"; import type { VoiceCallProvider } from "../providers/base.js"; export type TranscriptWaiter = { resolve: (text: string) => void; reject: (err: Error) => void; timeout: NodeJS.Timeout; }; export type CallManagerContext = { activeCalls: Map; providerCallIdMap: Map; processedEventIds: Set; provider: VoiceCallProvider | null; config: VoiceCallConfig; storePath: string; webhookUrl: string | null; transcriptWaiters: Map; maxDurationTimers: Map; };