// Types for ./gapCue.mjs (lane gap-cue): the gap cue's settings, label and timing. type Render = Record | null | undefined; type Entry = Record | null | undefined; export type GapCueCorner = "auto" | "tl" | "tr" | "bl" | "br"; export type GapCuePlace = "footage" | "deck"; export type GapCue = { mark: boolean; min: number; corner: GapCueCorner; label: string; place: GapCuePlace; border: string }; export type GapCueMark = { at: number; until: number; seconds: number; count: number; why?: string; corner?: string }; export type GapJoin = { at: number; seconds: number; mark: boolean; play?: number; why?: string; corner?: string | null }; export type GapWhy = "dead-air" | "idle" | "other"; export const GAP_CUE_DEFAULTS: Readonly; export const GAP_CUE_KEYS: readonly ("mark" | "min" | "corner" | "label" | "place" | "border")[]; export const GAP_CUE_BORDER_ACCENT: "accent"; export const GAP_CUE_BORDER_FALLBACK: string; export const GAP_CUE_PLACES: readonly GapCuePlace[]; export const GAP_CUE_CORNERS: readonly GapCueCorner[]; export const GAP_CUE_MIN: Readonly<{ min: number; max: number }>; export const GAP_CUE_LABEL_MAX: number; export const GAP_WHY: readonly GapWhy[]; export const GAP_WHY_WORDS: Readonly>; export const GAP_REASON_MAX: number; export const GAP_OWN_CORNERS: readonly ("tl" | "tr" | "bl" | "br")[]; export const GAP_REASON_RULE: string; export function gapReasonOk(v: unknown): v is string; export const GAP_CUE_LOOK: Readonly<{ font: number; pad: number; inset: number; stroke: number; strokeMin: number; fg: string; box: string; boxAlpha: number; strokeColor: string; strokeAlpha: number; }>; export function gapCueBorderOf(render: Render, entry?: Entry): string; export function gapCueLook(render: Render, entry?: Entry, o?: { border?: string | null }): Readonly; export const GAP_CUE_MOTION: Readonly<{ in: number; hold: number; out: number; peak: number }>; export const GAP_CUE_LIFE: number; export type GapCueBoxStyle = { fontSize: string; lineHeight: string; padding: string; color: string; border: string; background: string; backgroundClip: "padding-box"; whiteSpace: "nowrap"; }; export function gapCueBoxStyle(o: { font: number | string; stroke: number | string; lineHeight?: number; look?: Partial }): GapCueBoxStyle; export function gapCueCss(selector: string, o: { font: number | string; stroke: number | string; lineHeight?: number; look?: Partial; family?: string }): string; export function gapCueErrors(v: unknown, where?: string): string[]; export function validateGapCue(manifest: unknown): string[]; export function gapCueOf(render: Render): GapCue; export function clipGapCueOf(render: Render, entry: Entry): GapCue; export function gapMarkOn(cue: { mark: boolean }, gap: ({ mark?: unknown } & Record) | null | undefined): boolean; export function gapCueWanted(render: Render, entry: Entry): boolean; export function gapCueLength(seconds: number): string; export function gapWhyWord(gap: { why?: unknown; reason?: unknown } | null | undefined): string; export function gapOwnSays(own: Array<{ why?: unknown; reason?: unknown; corner?: unknown }>): { why?: string; corner?: string }; export function gapCueText(seconds: number, label?: string, why?: string): string; export function gapCues(joins: GapJoin[], opts?: { min?: number; seconds?: number; life?: number }): GapCueMark[]; export function gapCueAlpha(t: number, cue: { at: number; until: number }): number; export function patchGapCue(current: unknown, patch: unknown): Record | null;