import React from 'react'; import { type AriaPopoverProps } from 'react-aria'; import type { TestIdProp } from '../../types'; import { type PopoverTextContent } from './Popover'; export type OnStateReadyValue = { close: () => void; isOpen: boolean; }; /** * Props for the PopoverTrigger component. */ export interface PopoverTriggerProps extends Pick, TestIdProp { /** * The content to display in the popover */ content: React.ReactNode; /** * The element that triggers the popover when interacted with. For accessibility, * this must contain the aria visible content (e.g. "open calender") */ children: React.ReactNode; /** * Whether the trigger is disabled and non-interactive */ isDisabled?: boolean; /** * Language content override */ lang?: Partial; /** * Callback that receives the overlay trigger state for external control */ onStateReady?: (state: OnStateReadyValue) => void; ref?: React.RefObject; } /** * A popover component that displays content in an overlay positioned relative to a trigger element. * The popover automatically handles positioning, accessibility, and focus management. * * Note: Button components are not supported as children due to React Aria compatibility issues, * use button tag, plain text, or other elements instead. * * @example * ```tsx * }> * Choose Date * * ``` */ export declare const PopoverTrigger: { ({ content, children, isDisabled, offset, placement, shouldCloseOnInteractOutside, shouldFlip, testId, lang, ref, onStateReady, }: PopoverTriggerProps): React.JSX.Element; displayName: string; }; //# sourceMappingURL=PopoverTrigger.d.ts.map