import { default as React, ElementType, HTMLAttributes, ReactElement, ReactNode, RefObject } from 'react';
export type TransitionStatus = 'entering' | 'entered' | 'exiting' | 'exited' | 'unmounted';
export type TransitionTimeout = number | {
enter?: number;
exit?: number;
};
export type TransitionProps = Omit, 'children'> & {
in?: boolean;
timeout?: TransitionTimeout;
children: ReactNode | ((status: TransitionStatus) => ReactNode);
nodeRef?: RefObject;
unmountOnExit?: boolean;
onEntered?: (node: HTMLElement | null) => void;
onExited?: (node: HTMLElement | null) => void;
};
/**
* Transition - drives enter/exit status via callback. Uses refs only (React 19 safe).
*/
export declare function Transition({ in: inProp, timeout, children, nodeRef: nodeRefProp, unmountOnExit, onEntered, onExited, ...rest }: TransitionProps): string | number | bigint | boolean | Iterable | Promise> | Iterable> | import("react/jsx-runtime").JSX.Element;
/**
* TransitionGroup - simple wrapper (no findDOMNode). Use for layout only; key-based
* enter is handled by Transition children.
*/
export type TransitionGroupProps = HTMLAttributes & {
component?: ElementType;
children?: ReactNode;
};
export declare function TransitionGroup({ component: Component, children, ...rest }: TransitionGroupProps): import("react/jsx-runtime").JSX.Element;
/**
* CSSTransition - applies classNames based on status (prefix-enter, prefix-enter-active, etc.).
* Uses ref on wrapper div; React 19 safe.
*/
export type CSSTransitionProps = Omit, 'children'> & {
in: boolean;
timeout?: TransitionTimeout;
classNames?: string;
children: ReactElement<{
className?: string;
}> | ReactElement<{
className?: string;
}>[];
unmountOnExit?: boolean;
nodeRef?: RefObject;
};
export declare function CSSTransition({ in: inProp, timeout, classNames, children, unmountOnExit, nodeRef: nodeRefProp, ...rest }: CSSTransitionProps): import("react/jsx-runtime").JSX.Element;