import { type RefObject } from 'react'; /** * Safari-only guard: WebKit fires dialog `cancel` on Escape even when a child * `auto`/`hint` popover consumed it, closing the dialog too. * See notes/decisions/safari-escape-nested-popover-in-dialog.md */ export declare function useSafariEscapeFix({ dialogRef, isVisible, }: { dialogRef: RefObject; isVisible: boolean; }): { shouldIgnoreEscape: () => boolean; };