import { PropsWithChildren } from 'react'; import { OverlayController } from '../../lib/controller'; import { FlowComponentProps } from '../../lib/componentFactory/flowComponent'; import type * as Aria from "react-aria-components"; export interface PopoverProps extends PropsWithChildren>, FlowComponentProps { /** * Whether the popover should display a tip, pointing towards the trigger * element. */ withTip?: boolean; /** Whether the popover contains a dialog. */ isDialogContent?: boolean; /** An overlay controller to control the popover state. */ controller?: OverlayController; /** A fixed width for the popover. */ width?: string | number; /** * Whether the popover is open. Use it to control the popover state – then * `onOpenChange` must update the state this value comes from. */ isOpen?: boolean; /** * Whether the popover is open initially. Use it for an uncontrolled popover. * * @default false */ isDefaultOpen?: boolean; /** @deprecated Use `isDefaultOpen` instead. */ defaultOpen?: boolean; /** * Called with the new open state whenever the popover is opened or closed – * on every path, including a close triggered through the controller. It only * reports the change; it never performs or suppresses it. */ onOpenChange?: (isOpen: boolean) => void; } export declare const Popover: import('react').FunctionComponent>; export default Popover;