import type { ReactElement } from "react"; import React from "react"; import type { TooltipContentProps } from "../Tooltip/TooltipContent"; import type { TooltipConditionalProps } from "../Tooltip/types"; import type { PopupRole } from "../Sheet/Sheet"; type BaseProps = Pick & { name?: string; /** Popover content */ content: ReactElement; "data-e2e-test-id"?: string; /** Programmatically toggle Popover visibility with this prop */ isVisible?: boolean; /** Called when tooltip appears and disappears */ onVisibilityChange?: (isVisible: boolean, reason: string) => void; /** Controls whether BasePopover closes on outside click */ dismissOnOutsideClick?: boolean; /** Option for focus-trap, controls whether the first focuable item recieves focus */ disableInitialFocus?: boolean; /** Option for focus-trap, controls whether the trigger should receive back the focus on popover close */ disableReturnFocusToTrigger?: boolean; /** Render as sheet on mobile web */ renderAsSheetOnMobile?: boolean; /** When true, always render as a Sheet regardless of viewport size. */ forceSheetLayout?: boolean; /** Role for accessibility */ role?: PopupRole; /** Props for configuring the sheet on mobile web */ sheetProps?: { /** Show the dark scrim backdrop on mobile web when rendering as Sheet */ hasBackdrop?: boolean; }; }; export type BasePopoverProps = BaseProps & TooltipConditionalProps; export declare function BasePopover({ placement, content, children, contentPadding, maxWidth, externalTriggerRef, portalContainer, name, isVisible: isPopoverVisible, dismissOnOutsideClick, "data-e2e-test-id": dataE2eTestId, subTheme, defaultVerticalPlacement, onVisibilityChange, disableInitialFocus, disableReturnFocusToTrigger, renderAsSheetOnMobile, forceSheetLayout, role, sheetProps, ...restContentProps }: BasePopoverProps): React.ReactElement; export {};