import * as React from 'react'; import { HTMLMotionProps } from 'framer-motion'; import { MotionVariants } from '../../theme/components/transition'; export interface TransitionProps extends HTMLMotionProps<'div'> { /** * @children optional */ children?: React.ReactNode | undefined; /** * If `true`, the element will unmount when `in={false}` and animation is done * @default false */ unmountOnExit?: boolean; /** * If `true`, the content will animate in * @default false */ isOpen?: boolean; /** * Custom variants to be applied to the enter and exit transitions. * @internal */ customTransition?: MotionVariants<'enter' | 'exit'>; /** * @internal */ testId?: string; /** * Should children fade in/out * @default false */ fade?: boolean; /** * Should children scale in/out * @default false */ scale?: boolean; /** * Should children slide in/out from the top of the screen * @default false */ slideTop?: boolean; /** * Should children slide in/out from the bottom of the screen * @default false */ slideBottom?: boolean; /** * Should children slide in/out from the left of the screen * @default false */ slideLeft?: boolean; /** * Should children slide in/out from the right of the screen * @default false */ slideRight?: boolean; /** * Should the children get nudged in 50px from the top * @default false */ nudgeTop?: boolean; /** * Should the children get nudged in 50px from the bottom * @default false */ nudgeBottom?: boolean; /** * Should the children get nudged in 50px from the left * @default false */ nudgeLeft?: boolean; /** * Should the children get nudged in 50px from the right * @default false */ nudgeRight?: boolean; /** * Should children collapse in/out * @default false */ collapse?: boolean; /** * Should children rotate 45 degrees * @default false */ rotate45?: boolean; /** * Should children rotate 90 degrees * @default false */ rotate90?: boolean; /** * Should children rotate 180 degrees * @default false */ rotate180?: boolean; /** * Shows the drawer transition animation * @internal */ hasDrawerAnimation?: boolean; } export declare const Transition: React.ForwardRefExoticComponent & React.RefAttributes>;