// SPDX-License-Identifier: AGPL-3.0-only // What ./originalStage.js gives a page (see there, and ./original/host.tsx). import type { Appearance, AudioLevels, Theme } from './types'; export interface OriginalTrack { title: string; artist: string; album?: string; coverUrl?: string; /** Seconds; 0 while unknown. */ duration: number; /** What the styles seed their chance with: the same song lays out the same way each time. */ seed: string; } export interface OriginalStageOptions { clock: () => number; playing: () => boolean; style: string; theme: Theme; daylight: boolean; /** How far above the box's lower edge the band of coming lines stands, in CSS pixels. */ subtitleBottom?: number; /** A style that reads a click on a lyric line asks the song to jump there, in seconds. */ seek?: (seconds: number) => void; /** The style on stage failed while drawing: the page puts another on. */ failed?: () => void; } export declare const ORIGINAL_STYLE_IDS: string[]; /** One of Folia's own lyric styles on stage. The same calls as FoliaStage (./stage.ts), and the song's names besides. */ export declare class OriginalStage { readonly el: HTMLDivElement; constructor(host: HTMLElement, options: OriginalStageOptions); readonly style: string; setStyle(id: string): void; setTheme(theme: Theme, daylight?: boolean): void; setAppearance(appearance: Appearance): void; setSong(stamps: ReadonlyArray<{ time: number; text: string }>): void; setTrack(track: OriginalTrack): void; setAudio(levels: AudioLevels): void; setStill(still: boolean): void; setSubtitleBottom(pixels: number): void; setActive(active: boolean): void; nudge(): void; destroy(): void; } /** A carried style's own settings and its background's, drawn with Folia's own panels in an element of the page. */ export declare class OriginalSettings { readonly el: HTMLDivElement; constructor(host: HTMLElement, options: { style: string; theme: Theme; daylight: boolean }); setStyle(id: string): void; setTheme(theme: Theme, daylight?: boolean): void; destroy(): void; } /** Everything set in Folia's own panels, back as it came. */ export declare function resetOriginalSettings(): void; /** Before a carried style is put on stage: has its code fetched and starts what it warms up ahead. */ export declare function prepareOriginalStyle(id: string): void;