import { AnimationEventCallback, AnimationEventName, AnimationConfigWithPath, AnimationConfigWithData, AnimationDirection, AnimationSegment } from 'lottie-web'; import CSS from 'csstype'; export interface ReactLottieEvent { name: AnimationEventName; callback: AnimationEventCallback; } export declare type ReactLottieConfigWithData = Partial & { animationData: any; }; export declare type ReactLottieConfigWithPath = Partial & { path: string; }; export declare type ReactLottieConfig = ReactLottieConfigWithData | ReactLottieConfigWithPath; export interface ReactLottieState { config?: ReactLottieConfig; lottieEventListeners?: ReactLottieEvent[]; height?: string; width?: string; playingState?: ReactLottiePlayingState; segments?: AnimationSegment | AnimationSegment[]; speed?: number; style?: CSS.Properties; className?: string; direction?: AnimationDirection; } export interface ReactLottieOwnProps extends ReactLottieState { config: ReactLottieConfig; } export declare type ReactLottiePlayingState = 'playing' | 'paused' | 'stopped';