import type { PlayerEvent, PlayerOptions, PlayerPlugin, Source } from '@oplayer/core';
import Player from '@oplayer/core';
export interface ReactOPlayerProps extends Omit<PlayerOptions, 'source'> {
    playing?: boolean;
    duration?: number;
    aspectRatio?: number;
    plugins?: PlayerPlugin[];
    onEvent?: (e: PlayerEvent) => void;
    source?: Source | Promise<Source>;
}
declare const ReactOPlayer: import("react").ForwardRefExoticComponent<ReactOPlayerProps & import("react").RefAttributes<Player<Record<string, any>>>>;
export declare function usePrevious<T>(value: T): T | undefined;
export * from '@oplayer/core';
export default ReactOPlayer;
//# sourceMappingURL=index.d.ts.map