// Types for ./intro.mjs: the brand intro's rules (`render.intro`). type Render = Record | null | undefined; export type IntroGround = "light" | "dark"; export type IntroMark = "none" | "draw" | "chime"; export type IntroSwap = "swipe-down" | "roll" | "wipe"; export type IntroUrlMode = "both" | "site" | "project" | "none"; export type IntroUrlPlace = "under" | "replace"; /** `render.intro.site`'s object form, and what "auto" or a site id resolves to. */ export type IntroSiteObject = { name: string; lead?: string; accent?: string; url?: string | false }; export type IntroSite = "auto" | "none" | string | IntroSiteObject; export type Intro = { style: string; ground: IntroGround; mark: IntroMark; sound: string | false | undefined; seconds: number; site?: IntroSite; swap?: IntroSwap; url?: IntroUrlMode; urlPlace?: IntroUrlPlace; /** The brand (release 39): the kit it draws, the suffix a site's name keeps, the project URL the swap writes. */ brand?: string; suffix?: string; projectUrl?: string | false; /** The words: title-card's title and lines (or under a boot style's wordmark), only when written. */ title?: string; lines?: string[]; }; export const INTRO_STYLES: readonly string[]; export const INTRO_STYLE_DEFAULT: string; export const INTRO_KEYS: readonly string[]; export const INTRO_TITLE_MAX: number; export const INTRO_LINES_MAX: number; export const INTRO_LINE_MAX: number; export function introWordsErrors(o: Record): string[]; export const INTRO_GROUNDS: readonly IntroGround[]; export const INTRO_STYLE_GROUND: Readonly>; export const INTRO_MARKS: readonly IntroMark[]; export const INTRO_STYLE_MARK: Readonly>; export const INTRO_BEATS: Readonly<{ build: Readonly<{ from: number; to: number }>; chime: Readonly<{ from: number; to: number }>; fade: number; }>; export const INTRO_SITE_WORDS: readonly string[]; export const INTRO_SITE_KEYS: readonly string[]; export const INTRO_SWAPS: readonly IntroSwap[]; export const INTRO_URLS: readonly Exclude[]; export const INTRO_URL_PLACES: readonly IntroUrlPlace[]; export const INTRO_SITE_DEFAULTS: Readonly<{ swap: IntroSwap; url: IntroUrlMode; urlPlace: IntroUrlPlace }>; export const INTRO_SUFFIX: string; export const INTRO_BRAND_DEFAULT: string; export const INTRO_PROJECT_URL: string; export function introUrlMode(v: unknown): IntroUrlMode; export function introUrlText(u: unknown): string; export function introSitePrefix(name: unknown, suffix?: string): string; export function introSiteErrors(site: unknown): string[]; export const INTRO_SECONDS: number; export const INTRO_SECONDS_MIN: number; export const INTRO_SECONDS_MAX: number; export const INTRO_ID: string; export function introOf(render: Render): Intro | null; export function introErrors(value: unknown): string[]; export function validateIntro(manifest: unknown): string[]; export function introPatchValue(v: unknown): unknown;