import { type RefObject } from 'react'; /** Where a popup opening now from `trigger` belongs. A modal dialog sits in the * browser's top layer, above any z-index, and leaves the rest of the page inert, * so a popup portaled to the body would open under it, out of reach. Focus stays * inside the dialog, so it also places a popup opened by code rather than by the * reader. A fullscreen element is all the browser shows. Null keeps the default: * the popup it opened from, or the body. */ export declare function popupContainerFor(trigger: Element | null): HTMLElement | null; export interface PopupPortalProps { /** Read when the portal mounts, which is when its popup opens. */ container: RefObject; className: string; } /** Props for a popup's portal. The popup opens inside the innermost open modal * `` that holds its trigger, or else the fullscreen element, or else * the body, so it shows above whatever the trigger sits in. */ export declare function usePopupContainer(): PopupPortalProps;