import type { Laugh, Moment, Params, ReactionsChat, Role, Speaker, Turn } from "./clips.mjs"; import type { Segment } from "./segments.mjs"; export const REACTIONS_FILE: string; export const REACTIONS_VERSION: 1; export type ReactionsProposal = { id: string; start: number; end: number; score: number; moments: string[]; used: boolean; clipId: string | null; why: string; }; export type ReactionsDoc = { version: 1; source: { channel: string; video: string; duration: number; words: string | null; diarization: { generatedAt: string | null; engine: string | null }; audio?: string | null; }; params: Params; speakers: Speaker[]; turns: Turn[]; laughs: Laugh[]; moments: Moment[]; proposals: ReactionsProposal[]; madeAt?: string; proposedAt?: string; rolesChangedAt?: string; laughSource?: "model" | "text" | "text+energy"; scans?: Record; /** Release 36: the narrated-video spans auto-scope found, and which one the scope is (null: a scope by hand, or none). */ segments?: Segment[]; segment?: string | null; /** Release 36: the chat replay's signal, or null when there is none. */ chat?: ReactionsChat | null; }; export function reactionsFileOf(dir: string): string; export function readReactions(dir: string): Promise; export function writeReactions(dir: string, doc: ReactionsDoc): Promise; export function operatorRoles(doc: ReactionsDoc | null): Record; export function setSpeakerRole(dir: string, index: number, role: Role | null, opts?: { now?: () => Date }): Promise; export function setSpeakerLabel(dir: string, index: number, label: string | null): Promise;