import { ReactNode } from 'react'; import { MorphTransitionProps } from './types'; /** * MorphTransition enables FLIP-based morphing transitions for its child element. * It tracks the element's position across renders and animates between states. * * @example * ```tsx * // Basic usage with layout ID * * {content} * * * // With enter/exit animations * * {children} * * ``` */ export declare function MorphTransition({ children, layoutId, config, present, initial, animate, exit, className, style, }: MorphTransitionProps): ReactNode; /** * Props for AnimatedPresence component. */ interface AnimatedPresenceProps { /** Children to animate */ children: ReactNode; /** Whether to wait for exit animations before removing */ exitBeforeEnter?: boolean; /** Callback when all exits are complete */ onExitComplete?: () => void; } /** * AnimatedPresence enables exit animations for children when they're removed. * * @example * ```tsx * * {isVisible && ( * * * * )} * * ``` */ export declare function AnimatedPresence({ children, exitBeforeEnter, onExitComplete, }: AnimatedPresenceProps): ReactNode; export type { MorphTransitionProps, AnimatedPresenceProps };