import type { RecordingPerson, RecordingSpeaker, RecordingTrack } from "@opengeni/contracts"; import type { OpenGeniLinkRenderer } from "../components/open-geni-links.js"; import { type OpenGeniText } from "../messages/runtime.js"; export type MeetingMention = { kind: "speaker"; label: string; } | { kind: "person"; personId: string; }; /** Who a mention names now: the current name and, for a voice, its colour slot. */ export type ResolvedMeetingMention = { name: string; slot: number | undefined; }; export type MeetingMentionResolver = (mention: MeetingMention) => ResolvedMeetingMention | null; /** The mention a link points at, or null when it is any other link. */ export declare function parseMeetingMention(href: string | null | undefined): MeetingMention | null; /** * Resolves mentions against this meeting: a speaker label it has (named or * heard in the transcript), or a person in the directory or named here. */ export declare function meetingMentionResolver({ speakers, tracks, people, slots, msg, }: { speakers: readonly RecordingSpeaker[]; tracks: readonly RecordingTrack[]; people: readonly RecordingPerson[]; /** The transcript's colour slot per speaker label. */ slots: ReadonlyMap; msg?: OpenGeniText; }): MeetingMentionResolver; /** * The notes as Markdown with each mention turned into the plain current * name (or its link text when this meeting doesn't know it), for copying. */ export declare function meetingNotesForCopy(markdown: string, resolve: MeetingMentionResolver): string; /** A mention as a small inline chip: a voice in its colour, a person plain. */ export declare function MeetingMentionChip({ mention, name, slot, }: { mention: MeetingMention; name: string; slot: number | undefined; }): import("react").JSX.Element; /** * Draws mention links as chips for {@link Markdown}'s `renderLink`, and any * mention this meeting doesn't know as its plain text. Other links fall * through to the default renderer. */ export declare function meetingMentionLinkRenderer(resolve: MeetingMentionResolver): OpenGeniLinkRenderer;