UNPKG

kashi

Version:

Singing at the top of my lungs

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