import type * as React from 'react'; import type { BasePopupHandle } from './BasePopupHandle'; export interface PopupRootActions { /** * Unmounts the popup without firing `onOpenChange`. Call it after an * externally controlled closing animation finishes. */ unmount: () => void; /** * Closes the popup, reporting the `imperative-action` reason. */ close: () => void; } interface PopupRootHandleStore { set(key: 'open', value: boolean): void; setOpen(open: boolean, eventDetails: any): void; } /** * Wires a root's store to its `handle` and `actionsRef`. * * Shared by every popup root that supports them (Dialog and its variants, * Popover, Menu) — the wiring is identical, only the store type differs. */ export declare function usePopupRootHandle(params: { store: Store; handle: BasePopupHandle | undefined; actionsRef: React.RefObject | undefined; }): void; export {}; //# sourceMappingURL=usePopupRootHandle.d.ts.map