/** * Registers an Escape key handler that only triggers for the most recently opened instance. * This prevents multiple open drawers on the same page from all closing at once. * @param {object} params - Hook params. * @param {string} params.id - Unique id for this instance. * @param {boolean} params.isActive - Whether the handler is active. * @param {() => void} params.onEscape - Callback invoked on Escape (when top-most). * @returns {void} Nothing. */ export declare const useEscapeKeyTopMost: ({ id, isActive, onEscape, }: { id: string; isActive: boolean; onEscape: () => void; }) => void; export default useEscapeKeyTopMost; //# sourceMappingURL=useEscapeKeyTopMost.d.ts.map