import { ElementAnimation, MotionConfig } from '../types'; import { UseAnimateOptions, UseAnimateResult } from './useAnimate'; /** * Result returned by the useMotion hook. * * @category Hooks */ export interface UseMotionResult extends UseAnimateResult { /** * Joined animation classes: * - animation class only while `animating` * - motion style helper class when style is set */ animationClasses: string; } /** * Composes normalized motion input with useAnimate. * * Input can be a shorthand animation name or a full motion config object. * Optional `defaults` are merged with input before animation state is created. * * @param animation Motion value as shorthand name or full config object. * @param defaults Optional default motion configuration. * @param options Additional animation lifecycle options forwarded to useAnimate. * @category Hooks */ export declare function useMotion(animation: ElementAnimation | undefined, defaults?: Partial, options?: Omit): UseMotionResult;