import { default as React } from 'react'; import { AriaPositionProps } from 'react-aria'; import { TooltipTriggerState } from 'react-stately'; import { DOMAttributes, FocusableElement } from '@react-types/shared'; export declare const PREVIEW_OVERLAY_DEFAULT_PROPS: { offset: number; crossOffset: number; placement: "start top"; }; export interface PreviewOverlayProps extends Omit, 'children'> { /** * Preview overlay trigger state. */ state: TooltipTriggerState; /** * Ref to the trigger element. */ triggerRef: React.RefObject; /** * Children to render inside the preview overlay. * This function receives the current state of the tooltip trigger. */ children: (state: TooltipTriggerState) => React.ReactNode; /** * The additional offset applied along the main axis between the overlay and the trigger element. */ offset?: AriaPositionProps['offset']; /** * The additional offset applied along the cross axis between the overlay and the trigger element. */ crossOffset?: AriaPositionProps['crossOffset']; /** * The placement of the overlay with respect to the trigger element. */ placement?: AriaPositionProps['placement']; } export declare const PreviewOverlay: (props: PreviewOverlayProps & React.RefAttributes) => React.ReactNode;