export type ZafiroxThemePreference = 'light' | 'dark' | 'system' | 'classic'; export interface ZafiroxThemeSnapshot { readonly version: 1; readonly preference: ZafiroxThemePreference; readonly savedAt: number } export const ZAFIROX_THEME_STORAGE_KEY: 'zafirox.presentation.theme.v1'; export const ZAFIROX_THEME_COOKIE: 'zafirox.presentation.theme.v1'; export function readZafiroxThemeSnapshot(storage?: Pick, cookie?: string, now?: number): ZafiroxThemeSnapshot | null; export function readZafiroxThemeFromBrowser(document: Document, window: Window, now?: number): ZafiroxThemeSnapshot | null; export function writeZafiroxThemePreference(preference: ZafiroxThemePreference, document: Document, window: Window, now?: number): ZafiroxThemeSnapshot; export function syncZafiroxThemePreference(snapshot: ZafiroxThemeSnapshot | null, document: Document, window: Window, now?: number): ZafiroxThemeSnapshot | null; export function applyZafiroxThemeBeforePaint(document: Document, window: Window): { preference: ZafiroxThemePreference; themeId: 'zafirox-light' | 'zafirox-dark' }; export function getZafiroxThemeBootstrapScript(): string;