import * as React from 'react';
import { type HTMLMotionProps, type LegacyAnimationControls, type TargetAndTransition, type Transition } from 'motion/react';
import { type WithAsChild } from '../../../react-ui/primitives/Slot';
/** Props for the AutoHeight primitive component. */
type IAutoHeightProps = WithAsChild<{
children: React.ReactNode;
/** Dependency list to trigger re-measurement. */
deps?: React.DependencyList;
/** Motion animate target. */
animate?: TargetAndTransition | LegacyAnimationControls;
/** Motion transition config. */
transition?: Transition;
} & Omit, 'animate'>>;
/**
* AutoHeight primitive — animates height changes of dynamic content.
* Uses ResizeObserver internally to track content height and Motion for animation.
*
* @param deps - Dependency list to trigger re-measurement
* @param transition - Motion spring/tween transition config
* @param asChild - Render as child element using Slot pattern
*
* @example
* ```tsx
*
* {content}
*
* ```
*/
declare function AutoHeight({ children, deps, transition, style, animate, asChild, ...props }: IAutoHeightProps): import("react/jsx-runtime").JSX.Element;
export { AutoHeight, type IAutoHeightProps };
//# sourceMappingURL=index.d.ts.map