/** * One meeting's own page: back to Meetings, the title with who can see it, * Summary · Transcript · Notepad under it, then the player and the open tab. * Summary is the written notes (with mention chips and Copy), Transcript the * turns as speaker bubbles, Notepad what people jotted down; Summary and * Transcript end with "Ask about this meeting" when the host answers it. The * quiet card on the right names the speakers and says which transcript * version this is, with Transcribe again. * * Until the transcript exists the page says where the meeting is: still * recording here (with Pause and Stop, so taking notes never hides it), not * finished yet on another device, transcribing, or failed with the reason and * what to try. Audio uploads while it records, so after Stop it reads * Transcribing, not Uploading. */ import { type OpenGeniText } from "../messages/runtime.js"; import { type ReactNode } from "react"; import type { Recording, RecordingNote, RecordingTranscriptionModel } from "@opengeni/contracts"; import { type RecordingsClientOverride } from "../recordings.js"; import { type SelectOption } from "../ui/select-menu.js"; import { type ReachWorkspace } from "../app/components/workspace-reach.js"; import { type MeetingAskResult } from "./meeting-ask.js"; /** * The models "Transcribe again" offers. One that can't be used says why: * "Not supported in EU" when EU-only switched it off, otherwise what to connect. */ export declare function transcribeAgainModelOptions(models: readonly Pick[], msg?: OpenGeniText): SelectOption[]; /** * What transcribing a meeting again costs at a model's hourly price. Each * recorded track (a microphone beside computer audio, say) is transcribed and * billed on its own, so a two-track hour costs two hours. */ export declare function transcribeAgainEstimate(recording: Pick, usdPerHour: number | null | undefined): { usd: number; tracks: number; } | null; /** The meeting page's tabs. */ type MeetingTab = "summary" | "transcript" | "notepad"; /** Summary when there are written notes to read, else Transcript. */ export declare function openingMeetingTab(notes: RecordingNote | null): MeetingTab; /** One of the host's own lines about a meeting, such as its project. */ export type MeetingDetail = { id: string; label: string; content: ReactNode; }; type MeetingDetailPageProps = { workspaceId: string; recordingId: string; viewerSubjectId: string; /** The reader's name, for the people list when they name a speaker as themselves. */ viewerName?: string; /** The workspace recognizes people by voice, so speakers can be suggested and voices remembered. */ voiceRecognition?: boolean; /** A recordings client to use instead of the app's, for previews. */ recordings?: RecordingsClientOverride["recordings"]; onBack: () => void; /** Opens Meetings settings, where voice recognition is turned on. */ onOpenSettings?: (() => void) | undefined; /** * Opens where this person adds credits, the fix a transcript refused for * credits offers when no other model works here. Omit it for someone who * can't buy credits. */ onOpenBilling?: (() => void) | undefined; /** * Opens where models are connected, the fix for a transcript whose * provider isn't connected. Omit it for someone who can't connect one. */ onConnectModels?: (() => void) | undefined; /** * The host's own lines about this meeting, shown first beside the * transcript, such as the project it belongs to. */ details?: ((recording: Recording) => readonly MeetingDetail[]) | undefined; /** * The viewer's workspaces in this organization, their Personal workspace * marked, so they can choose where their own Only me meetings work * ("Available in"). Without it the page doesn't offer that choice. */ reachWorkspaces?: readonly ReachWorkspace[] | undefined; /** The organization's name, for "Available in". */ organizationName?: string | undefined; /** Opens a chat, such as the one whose agent wrote the notes. */ onOpenChat?: ((sessionId: string) => void) | undefined; /** * Answers "Ask about this meeting", usually by starting a chat with the * meeting attached and the question as its first message. Without it the * page has no Ask input. Resolve false to keep the question in the input * when the host couldn't take it and has already said why. */ onAsk?: ((recordingId: string, question: string) => MeetingAskResult | Promise) | undefined; }; /** * Each meeting starts fresh, even when the host keeps the page mounted and * only changes `recordingId`: its own opening tab, drafts and dialogs. */ export declare function MeetingDetailPage(props: MeetingDetailPageProps): import("react").JSX.Element; export {};