/** * The recorder on the Meetings page. Idle, it is one row: a title, whether to * include the other people (other apps' audio in the desktop app, a tab's audio * in a browser), and Start recording. Live, the same panel shows the * clock, a level meter per track, Pause and Stop, and where the audio is (on * this device, uploading, or waiting for the connection). */ import { type OpenGeniText } from "../messages/runtime.js"; import { type ReactNode, type ComponentProps } from "react"; import type { MeetingRecorder } from "./recorder-context.js"; import { type LiveTranscriptLine } from "./live-transcript.js"; type RecorderError = NonNullable; /** What went wrong and what to do, in the browser's terms. */ export declare function recorderErrorText(error: RecorderError, systemAudioKind?: MeetingRecorder["systemAudioKind"], msg?: OpenGeniText): { title: string; body: string; }; /** Why the server refused the audio, as a sentence; the server's own words when it's not a known case. */ export declare function uploadFailureReason(message: string, msg?: OpenGeniText): string; /** Where the audio is right now, in one short line. */ export declare function uploadLine(recorder: MeetingRecorder, online: boolean, msg?: OpenGeniText): string | null; /** True while audio is waiting on this device because the connection is down. */ export declare function uploadStalled(recorder: MeetingRecorder, online: boolean): boolean; /** Whether the browser says it's online, kept current. */ export declare function useOnline(): boolean; /** * Who a track's live text is from. Beside computer or tab audio the * microphone is the person recording (`ownerName`, else "You") and the other * track is "Others". A microphone alone may pick up a whole room, so it is * named like its level meter. */ export declare function liveSpeakerName(recorder: Pick, trackNumber: number, msg?: OpenGeniText, ownerName?: string | null): string; /** The live text the recorder has heard, as lines for {@link LiveTranscript}. */ export declare function recorderLiveLines(recorder: Pick): LiveTranscriptLine[]; /** Why live text stopped, in the recorder's terms, from the first track's reason. */ export declare function liveUnavailableText(tracks: readonly { error: { code: string; message: string; } | null; }[], msg?: OpenGeniText): string; /** * The recording on the meeting's own page while this device records it, so * taking notes there never hides that it is still recording or how to end it: * the state and clock with Pause and Stop. Says so only when the connection * keeps the audio on this device. */ export declare function RecordingBar({ recorder, onStopped, }: { recorder: MeetingRecorder; /** After Stop, with the recording that stopped. */ onStopped?: ((recordingId: string) => void) | undefined; }): import("react").JSX.Element; declare function RecorderPanelContent({ recorder, onStopped, onOpenNotes, liveTranscript, defaultLanguage, autoStart, externalRef, notice, viewerName, }: { /** Null while the capture code loads. */ recorder: MeetingRecorder | null; /** After Stop, with the recording to open. */ onStopped?: ((recordingId: string) => void) | undefined; /** Opens the meeting being recorded, where its notepad is. */ onOpenNotes?: ((recordingId: string) => void) | undefined; /** Offer the live transcript preview; null when the workspace has no live model. */ liveTranscript?: { defaultOn: boolean; usdPerHour?: number | null; } | null; /** * The workspace's meeting language; null detects it. Undefined while it * isn't known: a meeting started then names no language, and the server * uses the workspace's. */ defaultLanguage?: string | null | undefined; /** * Start recording as soon as the recorder is ready, with this panel's * defaults, as a desktop call notification asked. `take` returns the * request once, so it starts one recording. */ autoStart?: { pending: boolean; take: () => { title: string; titleSource?: "person" | "app"; } | null; } | null; /** The host's own id for what new recordings belong to, such as a project. */ externalRef?: string | null | undefined; /** A short line shown before every start, such as a reminder to tell the people present. */ notice?: ReactNode; /** The person recording's name, for their microphone's live text beside computer or tab audio. */ viewerName?: string | null | undefined; }): import("react").JSX.Element; /** * The meeting's language and the live transcript: set once in Meetings * settings, so they wait in one small menu beside Start instead of crowding it. */ export declare function RecorderOptions({ language, onLanguageChange, live, disabled, defaultOpen, }: { language: string; onLanguageChange: (language: string) => void; live: { on: boolean; usdPerHour: number | null; onChange: (on: boolean) => void; } | null; disabled: boolean; /** Tests open it without a pointer. */ defaultOpen?: boolean; }): import("react").JSX.Element; /** * What the live preview adds to the bill, where it's switched on; empty when * this workspace isn't charged by the hour for it. */ export declare function liveCostHint(usdPerHour: number | null, msg?: OpenGeniText): string; export declare function RecorderPanel(props: ComponentProps): import("react").JSX.Element; export {};