/** * The transcript as a person reads it: turns of one speaker, each a soft * bubble under the speaker's name in their colour, with its time and the line * playing now highlighted. A speaker's name opens "Who is this?" (someone from * the people directory, or a new name); a turn's pencil corrects its words and * its ⋯ menu moves it to another speaker. A name recognized by voice is marked * suggested until someone confirms or turns it down. */ import { type OpenGeniText } from "../messages/runtime.js"; import { type ComponentProps, type CSSProperties } from "react"; import type { RecordingPerson, RecordingSpeaker, RecordingTrack, RecordingTranscriptSegment } from "@opengeni/contracts"; /** * A voice's hue, for its name and mentions; the shared rules below mix it. * Set inline, so the six slots cost no stylesheet rules. */ export declare function speakerHueStyle(slot: number | undefined): CSSProperties | undefined; /** The text colour of a speaker's colour slot, with {@link speakerHueStyle}; muted when there is none. */ export declare function speakerTextClass(slot: number | undefined): string; /** The faint fill of a speaker's colour slot, with {@link speakerHueStyle}; the chip surface when there is none. */ export declare function speakerTintClass(slot: number | undefined): string; export declare function SpeakerDot({ slot, className }: { slot: number | undefined; className?: string; }): import("react").JSX.Element; export type TranscriptActions = { nameSpeaker: (label: string, name: { personId: string; } | { name: string; } | null) => Promise; /** Turn down a name suggested from a voice. */ rejectSuggestion: (label: string) => Promise; createPerson: (displayName: string) => Promise; /** * Name a speaker as the person reading, linked to their account so their * own voice can be remembered. Null when there is no signed-in member. */ nameSelf: ((label: string) => Promise) | null; /** Who is reading, to tell their own entry in the people list apart. */ viewerSubjectId: string | null; moveSegment: (segmentIndex: number, label: string) => Promise; editSegment: (segmentIndex: number, text: string | null) => Promise; /** Null when the workspace doesn't recognize people by voice. */ voices: VoiceActions | null; }; /** Remembering and forgetting voices, from a named speaker's menu. */ export type VoiceActions = { viewerSubjectId: string; /** Asks first when the person is someone from outside the workspace. */ remember: (person: RecordingPerson) => void; forget: (person: RecordingPerson) => Promise; }; /** The speaker's name came from their voice and nobody has confirmed it yet. */ export declare function speakerIsSuggested(label: string | null, speakers: readonly RecordingSpeaker[]): RecordingSpeaker | null; /** "92% match", from the voice similarity behind a suggestion. */ export declare function suggestionMatch(speaker: RecordingSpeaker, msg?: OpenGeniText): string | null; /** * "Who is Speaker 2?": pick a person, add a new name, or clear it. People * already named in this meeting come first as "Same person as …", because * picking one joins the two voices under one name. */ export declare function SpeakerNameMenu({ label, displayName, speakers, people, actions, onAddNew, children, align, defaultOpen, }: { label: string; displayName: string; speakers: readonly RecordingSpeaker[]; people: readonly RecordingPerson[]; actions: TranscriptActions; onAddNew: (label: string) => void; children: React.ReactNode; align?: "start" | "end"; /** Open on first render, for previews. */ defaultOpen?: boolean; }): import("react").JSX.Element; /** "Name this speaker": adds them to the people directory and names the voice. */ export declare function NewSpeakerNameDialog({ label, displayName, actions, onClose, }: { label: string | null; displayName: string; actions: TranscriptActions; onClose: () => void; }): import("react").JSX.Element; declare function MeetingTranscriptContent({ segments, speakers, tracks, people, activeSegment, actions, onSeek, }: { segments: readonly RecordingTranscriptSegment[]; speakers: readonly RecordingSpeaker[]; tracks: readonly RecordingTrack[]; people: readonly RecordingPerson[]; /** The segment playing now. */ activeSegment: number | null; actions: TranscriptActions; /** Null when there is no audio to play. */ onSeek: ((milliseconds: number) => void) | null; }): import("react").JSX.Element; export declare function MeetingTranscript(props: ComponentProps): import("react").JSX.Element; export {};