import { type ReactElement } from "react"; import { type SX, type ThemeKeys } from "../../theme"; export interface AnimatedElementProps { children: OnlyChild; animation?: { name: "fade"; } | { name: "slide"; offset?: number; } | { name: "expand-vertical"; } | { name: "expand-horizontal"; }; enterDuration?: AnimationDuration; exitDuration?: AnimationDuration; focusable?: boolean; sx?: SX; animateOnMount?: boolean; } type AnimationDuration = ThemeKeys<"transitionDuration">; type OnlyChild = ReactElement | null | undefined | false | 0; /** * Animates a single element in & out based on whether it's currently rendered. * An exit then enter animation will also play sequentially if the element's key changes. */ export declare const AnimatedElement: (props: AnimatedElementProps & import("react").RefAttributes) => ReactElement> | null; export {};