// Types for ./vertical.mjs (lane vertical): the vertical format's rules and a clip's side post. type Render = Record | null | undefined; export type ClipLayout = "full" | "framed" | "quote"; export type PostLayout = "card" | "stack" | "media"; export type SideLayout = "split" | "overlay"; export type VerticalDeck = "stacked" | "bare"; export type VerticalKnobs = { deck: VerticalDeck; clip: ClipLayout; post: PostLayout; side: SideLayout; captions: { size: "l" | "xl"; lines: 1 | 2 }; hook: false | "title" | "section" | { text: string }; tag: boolean; safe: { top: number; bottom: number; right: number }; loudness: number; maxSeconds: number; qr: false | true | { corner?: "tr" | "tl"; size?: number; links?: "cite" | "moment" | "channel" }; }; export const RENDER_FORMATS: readonly ("landscape" | "vertical")[]; export const VERTICAL_CLIP_LAYOUTS: readonly ClipLayout[]; export const CLIP_OWN_LAYOUTS: readonly (ClipLayout | "twocrop")[]; export const VERTICAL_DECKS: readonly VerticalDeck[]; export const VERTICAL_POST_LAYOUTS: readonly PostLayout[]; export const VERTICAL_SIDE_LAYOUTS: readonly SideLayout[]; export const LANDSCAPE_SIDE_PLACES: readonly ("right" | "left")[]; export const SIDE_PLACES: readonly string[]; export const VERTICAL_CAPTION_SIZES: readonly string[]; export const VERTICAL_HOOKS: readonly string[]; export const VERTICAL_HOOK_MAX: number; export const SIDE_MIN_SECONDS: number; export const VERTICAL_WIDTH: number; export const VERTICAL_HEIGHT: number; export const VERTICAL_DEFAULTS: Readonly; export const VERTICAL_KEYS: readonly string[]; export const VERTICAL_SAFE_MAX: Readonly<{ top: number; bottom: number; right: number }>; export function verticalOn(render: Render): boolean; export function verticalKnobs(render: Render): VerticalKnobs; export function clipLayoutOf(entry: unknown, render: Render): ClipLayout; export function stackedDeckWanted(render: Render): boolean; export function clipTwoCrop(entry: unknown): [number[], number[]] | null; export function validateVerticalRender(manifest: unknown): string[]; export function sideErrors(side: unknown, who?: string, opts?: { itemIds?: Set | null }): string[]; export function validateClipSides(manifest: unknown): string[]; export function sidePostOf(entry: unknown, timeline?: unknown[]): Record | null; export function sideSpan(side: unknown, seconds: number): { from: number; to: number } | null; export function validateVerticalFormat(manifest: unknown): string[]; export const VERTICAL_QR_CORNERS: readonly ["tr", "tl"]; export const VERTICAL_QR_KEYS: readonly string[]; export const VERTICAL_QR_SIZE: Readonly<{ min: number; max: number; default: number }>; export const QR_LINKS: readonly ["cite", "moment", "channel"]; export function verticalQrErrors(v: unknown, where?: string): string[]; export type DesktopKnobs = { tag: boolean; hook: false | "title" | "section" | { text: string }; captions: { size: "m" | "l" | "xl"; lines: 1 | 2 }; safe: { top: number; bottom: number; right: number; left: number }; loudness: number; maxSeconds: number; qr: false | true | { corner?: "br" | "bl" | "tr" | "tl"; size?: number; links?: "cite" | "moment" | "channel" }; }; export const DESKTOP_WIDTH: number; export const DESKTOP_HEIGHT: number; export const DESKTOP_CAPTION_SIZES: readonly ["m", "l", "xl"]; export const DESKTOP_QR_CORNERS: readonly ["br", "bl", "tr", "tl"]; export const DESKTOP_QR_SIZE: Readonly<{ min: number; max: number; default: number }>; export const DESKTOP_SAFE_MAX: number; export const DESKTOP_DEFAULTS: Readonly; export const DESKTOP_KEYS: readonly string[]; export function desktopKnobs(render: Render): DesktopKnobs; export function validateDesktopRender(manifest: { render?: Record | null } | null | undefined): string[];