import { Meeting } from '../../types/rtk-client'; import { Transcript, States } from '../../types/props'; import { RtkI18n } from '../../lib/lang'; import { UIConfig } from '../../types/ui-config'; /** * A component which handles transcripts. * * You can configure which transcripts you want to see and which ones you want to hear. * There are also certain limits which you can set as well. */ export declare class RtkTranscripts { private disconnectTimeout; host: HTMLRtkTranscriptsElement; /** Meeting object */ meeting: Meeting; /** States object */ states: States; /** Config object */ config: UIConfig; /** Language */ t: RtkI18n; transcripts: Array; listenerAttached: boolean; connectedCallback(): void; private addListener; private clearListeners; disconnectedCallback(): void; meetingChanged(meeting: Meeting, oldMeeting?: Meeting): void; statesChanged(states?: States): void; private onTranscript; private transcriptionsReducer; private add; /** * Groups raw transcript entries using the same merging rules as the renderer: * consecutive entries from the same peer are combined with a separator space * until the accumulated text exceeds MAX_GROUP_LENGTH, at which point a new * group begins. Assigns renderedId on each entry as a side effect so that * pruning and rendering stay in sync. */ private buildGroups; /** * Keeps only the raw entries that belong to the latest two rendered groups. * Entries that fall outside the visible two groups are removed immediately * so they cannot resurface after current captions expire. */ private pruneToLatestTwoGroups; private remove; private handleDismiss; private renderTranscripts; render(): any; }