UNPKG

vlibras-player-webjs

Version:

Biblioteca JavaScript moderna para integração do VLibras Player com React, Vue, Angular e vanilla JS

29 lines 831 B
/** * Interfaces para sistema de plugins * Interface Segregation Principle: Contratos específicos e focados */ export interface IVLibrasPlugin { name: string; version: string; description?: string; dependencies?: string[]; init(context: PluginContext): void | Promise<void>; destroy?(): void | Promise<void>; hooks?: { beforePlay?: (text: string) => string | Promise<string>; afterPlay?: (result: any) => void | Promise<void>; onError?: (error: Error) => void | Promise<void>; onReady?: () => void | Promise<void>; }; } export interface PluginContext { player: any; events: any; config: any; utils: { logger: (message: string, level?: string) => void; cache: any; themes: any; }; } //# sourceMappingURL=IPlugin.d.ts.map