import { type ForwardedRef, type ReactNode } from 'react'; type RegionName = { attr: 'aria-labelledby'; value: string; } | { attr: 'aria-label'; value: string; }; /** Names the region after the popup's trigger. Null when nothing names * it: the wrapper then stays a plain element. */ export declare function popupRegionName(popup: HTMLElement): RegionName | null; export interface PopupRegionProps { /** The caller's own ref to the popup element. */ popupRef?: ForwardedRef; /** Pass `false` while closed when the Portal stays mounted (Radix Select * does), so no wrapper is left at the end of . */ open?: boolean; /** Renders the popup. Put the given ref on the popup element. */ children: (ref: (node: HTMLDivElement | null) => void) => ReactNode; } /** * Place directly inside a Radix `*.Portal`. The Portal's ref reaches the * popup through this wrapper, so Radix still sees the popup's own exit * animation before it unmounts. */ export declare const PopupRegion: import("react").ForwardRefExoticComponent>; export {}; //# sourceMappingURL=popup-region.d.ts.map