UNPKG

kashi

Version:

Singing at the top of my lungs

29 lines (26 loc) 821 B
// Generated by dts-bundle-generator v9.5.1 export type KashiFile = Blob | undefined; export type EventName = string; export type EventData = any; export type EventCallback = (data: EventData) => void; export interface KashiProps { file?: KashiFile; container: HTMLDivElement; emptyLineText?: string; audioPlayer?: HTMLAudioElement; enableAutoScroll?: boolean; } export declare class Kashi { #private; constructor(props: KashiProps); get file(): KashiFile; get emptyLineText(): string; get noLyricsText(): string; setFile(file: KashiFile): Promise<void>; setEmptyLineText(text: string): void; setNoLyricsText(text: string): void; subscribe(event: EventName, fn: EventCallback): void; unsubscribe(event: EventName, fn: EventCallback): void; notify(event: EventName, data?: EventData): void; } export {};