import type { KeyboardEvent } from 'react';
export declare function useDialogFocusTrap<TDialog extends HTMLElement>(input: Readonly<{
    open: boolean;
    onClose: () => void;
}>): {
    readonly dialogRef: import("react").RefObject<TDialog | null>;
    readonly registerInitialFocus: (node: HTMLElement | null) => void;
    readonly setReturnFocusTarget: (node: HTMLElement | null) => void;
    readonly handleDialogKeyDown: (event: KeyboardEvent<TDialog>) => void;
};
