UNPKG

react-decode-animation

Version:
17 lines (16 loc) 508 B
export declare type UseDecodeAnimationProps = { value: string; interval: number; onFinish?: Function; }; export declare type UseDecodeAnimationType = (props: UseDecodeAnimationProps) => { text: string; currentIndex: number; state: DecodeState; play: Function; pause: Function; reset: Function; }; export declare type DecodeState = "Playing" | "Paused" | "Reset"; declare const useDecodeAnimation: UseDecodeAnimationType; export default useDecodeAnimation;