import { LyricsInlineData, LyricsLineData } from './parseLyrics'; export declare type RabbitLyricsViewMode = 'clip' | 'full' | 'mini'; export declare type RabbitLyricsAlignment = 'left' | 'right' | 'center'; export interface RabbitLyricsLine extends LyricsLineData { element: HTMLDivElement; content: (LyricsInlineData & { element: HTMLSpanElement; })[]; } /** * RabbitLyrics options. */ export interface RabbitLyricsOptions { /** * Support three view modes: * - clip: a scrollable lyrics (default), good for music player * - full: full text lyrics, good for audio books * - mini: single line lyrics, good for videos * To change height and font size, please use your own CSS overrides. */ viewMode: RabbitLyricsViewMode; /** Alignment direction. Default is 'center'. */ alignment: RabbitLyricsAlignment; /** Lyrics text with timestamps. */ lyrics: string; } /** * RabbitLyrics main controller. */ export default class RabbitLyrics implements RabbitLyricsOptions { /** Lyrics container element. Support data-* attributes for options. */ lyricsElement: HTMLElement & { rabbitLyrics?: RabbitLyrics; }; /** Audio or video element. Note: embeded media elements in