UNPKG

kashi

Version:

Singing at the top of my lungs

29 lines (26 loc) 832 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 { files?: KashiFile[]; container: HTMLDivElement; emptyLineText?: string; audioPlayer?: HTMLAudioElement; enableAutoScroll?: boolean; } export declare class Kashi { #private; constructor(props: KashiProps); get files(): KashiFile[]; get emptyLineText(): string; get noLyricsText(): string; setFiles(files?: 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 {};