export interface ModalFocusReturnHandlers { /** Runs before Radix moves focus into the panel, while the opener still holds it. */ readonly onOpenAutoFocus: (event: Event) => void; /** Runs as the panel unmounts, before the focus scope would restore. */ readonly onCloseAutoFocus: (event: Event) => void; } /** * The `onOpenAutoFocus` / `onCloseAutoFocus` pair to spread onto a Radix * `Dialog.Content`. * * @param hasTrigger - whether a Radix `Trigger` is rendered. When it is, both * handlers stand down and Radix's own focus return applies. */ export declare function useModalFocusReturn(hasTrigger: boolean): ModalFocusReturnHandlers; //# sourceMappingURL=modal-focus.d.ts.map