import type { AnimationDriver, DriverComposite, DriverConfig, DriverValue } from '../animation/types'; interface AnimationArgs { /** * The driver used to power the animation. */ driver: D; /** * The start value of the animated value. */ initialValue: number; /** * The end value of the animated value. */ finalValue: number; /** * The configuration for the entry animation. */ entryAnimationConfig: DriverConfig; /** * The configuration for the exit animation. * Defaults to the entry animation config if not provided. */ exitAnimationConfig?: DriverConfig; /** * Whether to use the native animation driver. * @default true */ useNativeDriver?: boolean; } /** * A hook that creates entry and exit animations based on * the config. * @param props The configuration to create the animation. * @param props.driver The driver used to power the animation. * @param props.initialValue The start value of the animated value. * @param props.finalValue The end value of the animated value. * @param props.entryAnimationConfig The configuration for the entry animation. * @param props.exitAnimationConfig The configuration for the exit animation. * @param props.useNativeDriver Whether to use the native animation driver. Defaults to true. * @returns The an object containing the animated value on which * the animation will be performed, the entry and exit animation function. */ export declare const useAnimation: ({ driver, initialValue, finalValue, entryAnimationConfig, exitAnimationConfig, useNativeDriver, }: AnimationArgs) => { value: DriverValue; entryAnimation: () => DriverComposite; exitAnimation: () => DriverComposite; }; export {}; //# sourceMappingURL=useAnimation.d.ts.map