import React from 'react'; import { type ContentProps, type PopupProps as LegacyPopupProps } from '../types'; type CommonContentPopupProps = Pick & { children: (props: ContentProps) => React.ReactNode; /** * ___Use with caution___ * * Disables popper.js GPU acceleration for this popup. * This means only positioning will be used, without any transforms. * * Performance will be degraded if the popup is expected to move. * * This should almost never be used, but is sometimes needed * to resolve layering issues. */ shouldDisableGpuAcceleration?: boolean; }; type ShouldFitContainerContentPopupProps = CommonContentPopupProps & { shouldFitContainer: true; shouldRenderToParent?: true; strategy?: 'absolute'; }; type StandardPopupContentProps = CommonContentPopupProps & { shouldFitContainer?: false; }; export type PopupContentProps = ShouldFitContainerContentPopupProps | StandardPopupContentProps; /** * __Popup content__ * * Popup content is the component that renders the content of the popup. * * It must be a child of the Popup component. */ export declare const PopupContent: ({ xcss, appearance: inAppearance, children, boundary, offset, strategy, onClose, testId, rootBoundary, shouldFlip, placement, fallbackPlacements, popupComponent, autoFocus, zIndex, shouldUseCaptureOnOutsideClick, shouldRenderToParent: inShouldRenderToParent, shouldDisableFocusLock, shouldFitContainer, shouldFitViewport, shouldDisableGpuAcceleration, role, titleId, }: PopupContentProps) => React.JSX.Element | null; export {};