UNPKG

vlibras-player-webjs

Version:

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

28 lines 1.03 kB
import { ReactNode } from 'react'; import { VLibrasPlayer as CorePlayer } from '../../../../core/player/VLibrasPlayer'; interface VLibrasContextType { player: CorePlayer | null; isLoaded: boolean; isPlaying: boolean; error: Error | null; config: VLibrasConfig; updateConfig: (newConfig: Partial<VLibrasConfig>) => void; } interface VLibrasConfig { targetPath: string; theme: 'light' | 'dark' | 'auto' | 'high-contrast'; autoInitialize: boolean; enableCache: boolean; debug: boolean; playbackSpeed?: number; language?: 'pt-BR' | 'en' | 'es'; enableAccessibility?: boolean; } export interface VLibrasProviderProps { children: ReactNode; config?: Partial<VLibrasConfig>; } export declare function VLibrasProvider({ children, config: userConfig }: VLibrasProviderProps): import("react/jsx-runtime").JSX.Element; export declare function useVLibrasContext(): VLibrasContextType; export type { VLibrasConfig, VLibrasContextType }; //# sourceMappingURL=VLibrasProvider.d.ts.map