import type { Word } from "./clips.mjs"; export const ASSIST_BY: readonly ("assistant" | "operator")[]; export const ASSIST_EDITS: readonly ("trim" | "split" | "merge" | "add" | "restore")[]; export const WINDOW_PAD_S: number; export const QUOTE_MAX: number; export type AssistSpan = { start: number; end: number; cutStart: number; cutEnd: number }; export type AssistEdit = { at: string; by: "assistant" | "operator"; what: "trim" | "split" | "merge" | "add" | "restore"; from?: Record; to?: Record; }; export type Assist = { by: "assistant" | "operator"; proposal?: string; score?: number; why?: string; original?: AssistSpan; edits?: AssistEdit[]; }; export type AssistClip = { type: "clip"; id: string; channel: string; video: string; start: number; end: number; cutStart: number; cutEnd: number; cite: number; quote: string; assist: Assist; citeUrl?: string; }; export function validateAssist(manifest: unknown): string[]; export function isAssistantClip(e: unknown): boolean; export function cutOf(e: { start: number; end: number; cutStart?: number; cutEnd?: number }): { start: number; end: number }; export function watchUrlAt(url: string | null | undefined, seconds: number): string | null; export function clipFromProposal( p: { id: string; start: number; end: number; score: number; why: string }, o: { id: string; channel: string; video: string; duration?: number; words?: Word[]; citeUrlAt?: ((s: number) => string | null) | null }, ): AssistClip; export function fixedClips(timeline: unknown[], o: { channel: string; video: string; isProtected?: (e: any) => boolean }): { id: string; start: number; end: number }[]; export function applyProposals( timeline: unknown[], o: { proposals: { id: string; start: number; end: number; score: number; why: string; used: boolean; fixedClip?: string; moments?: string[] }[]; channel: string; video: string; duration?: number; words?: Word[]; isProtected?: (e: any) => boolean; citeUrlAt?: ((s: number) => string | null) | null; }, ): { timeline: any[]; proposals: { id: string; start: number; end: number; score: number; why: string; used: boolean; clipId: string | null; moments?: string[] }[]; changes: { added: string[]; updated: string[]; removed: string[]; kept: number }; };