import type { Dispatch, RefObject, SetStateAction } from 'react'; export type PopoverState = { setOpen: Dispatch>; }; /** * Hook for managing popover animation. * * This hook provides functionality for managing the animation of a popover component. * It controls the opening and closing animation of the popover based on the provided * `open` state. The hook returns the animation controls and popover ref to be used in * the popover component. * * @param state Ref object for managing the popover state. * @returns The animation controls and popover ref. * * @example * ```tsx * const {controls, popover} = usePopoverAnimation(state); * ``` */ export declare const usePopoverAnimation: (state: RefObject) => { controls: import("motion").LegacyAnimationControls; popover: RefObject; setOpen: Dispatch>; showContent: boolean; };