import type { TelemetryRow, TelemetrySnapshot } from "./metrics"; import { BatchReprocessStatus } from "./batchReprocess"; import type { DebugAuditFile } from "./audit"; import EventEmitter from "../../shared/EventEmitter"; import { Connection } from "../../SofyaTranscriber"; export declare class SofyaTranscriber extends EventEmitter { private transcriptionService; private debugAudit; private readonly telemetryIntegration; private readonly debugAuditStore; private debugAuditWritePromise; private transcriptionServiceListeners; private resilienceStatusLogTimer; constructor(connection: Connection); startTranscription(mediaStream: MediaStream): Promise | void; stopTranscription(): Promise; reprocessAudio(): Promise; getBatchReprocessStatus(): BatchReprocessStatus; getBatchReprocessRemainingTime(): number | null; pauseTranscription(): void; resumeTranscription(): void; getResilienceStatus(): {} | null; getSttSessionId(): string | null; getSttSessionIds(): string[]; getTelemetrySnapshot(): TelemetrySnapshot | null; getTelemetryRows(): TelemetryRow[]; clearTelemetryRows(): void; resetTelemetry(): void; getDebugAudit(): Promise; downloadDebugAudit(fileName?: string): Promise; clearDebugAudit(): Promise; private initializeTranscriptionService; /** * Discovery mode: the resolver turns the reasoner answer into ordered * Session candidates; the first one whose plan is valid and whose adapter * constructs is selected. Selection is not proof of connectivity. */ private getProvider; /** * Direct mode: resolve the public Connection into one SessionPlan and build * the composed service from it. Opens no transport. */ private createDirectService; /** `config.transportFactory` reaches the Whisper adapter, as before. */ private transportDependencies; private isDebugEnabled; private addTranscriptionListeners; private startResilienceStatusLogging; private stopResilienceStatusLogging; private bindTranscriptionListener; private detachTranscriptionListeners; private createDebugAuditState; private buildLiveDebugAuditState; private normalizeDebugAuditConfig; private createTelemetryIntegration; private handleTelemetryIntegrationWarning; private dispatchTelemetryIntegration; private handleSttAuditIngestionWarning; private dispatchSttAuditIngestion; private buildInMemoryDebugAuditState; private emitPublicEvent; private recordDebugEvent; private recordDebugStatus; private recordDebugTelemetry; private serializeDebugDetail; private setResolvedDebugProvider; private markDebugStart; private markDebugStop; private generateDebugSessionId; private getDebugFileName; private prepareDebugSessionForStart; private resetDebugAuditSession; private initializeDebugAuditSession; private appendDebugPhase; private appendDebugIncident; private recordDebugMilestone; private appendDebugFinalDigest; private persistDebugCheckpoint; private pushDebugItem; private queueDebugAuditWrite; private flushDebugAuditWrites; private isFatalError; private hashDebugText; private resolveCurrentDebugStatus; } /** * Transcriber of `provider: "sofya_gateway"`: the same facade, as its own * class so the gateway session is told apart from `sofya_as_service`. */ export declare class SofyaGatewayTranscriber extends SofyaTranscriber { } export declare const createTranscriber: (connection: Connection) => SofyaTranscriber; //# sourceMappingURL=SofyaTranscriber.d.ts.map