UNPKG

vlibras-player-webjs

Version:

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

43 lines 1.44 kB
/** * VLibras Testing Utilities * Utilitários para testes sem dependência externa */ export declare class VLibrasTestUtils { /** * Cria um mock do VLibrasPlayer para testes */ static createMockPlayer(): { init: jest.Mock<any, any, any> | (() => void); translateAsync: jest.Mock<any, any, any> | (() => Promise<void>); playAsync: jest.Mock<any, any, any> | (() => Promise<void>); pause: jest.Mock<any, any, any> | (() => void); stop: jest.Mock<any, any, any> | (() => void); destroy: jest.Mock<any, any, any> | (() => void); isLoaded: boolean; isPlaying: boolean; }; /** * Mock de eventos do VLibras */ static createMockEvents(): { emit: (event: string, data?: any) => void; on: (event: string, callback: Function) => void; off: (event: string, callback: Function) => void; }; /** * Utilitários para DOM em testes */ static createMockContainer(): HTMLDivElement | { id: string; appendChild: () => void; removeChild: () => void; querySelector: () => null; addEventListener: () => void; removeEventListener: () => void; }; /** * Aguarda um elemento estar pronto (para testes async) */ static waitForElement(selector: string, timeout?: number): Promise<Element | null>; } //# sourceMappingURL=VLibrasTestUtils.d.ts.map