import { RefObject } from 'react'; import { FocusableElement } from 'tabbable'; export type InitialFocusOptions = { /** * Function to pick the initial focus target, given an array of focusable elements */ computeFocus?: (focusables: FocusableElement[]) => FocusableElement; }; /** * Hook to set initial focus for a dialog (e.g. Dialog, Drawer) when it is opened. * @param dialogRef - Ref to the dialog element * @param options - Options for the hook * @param options.computeFocus - Function to pick the initial focus target, given an array of focusable elements */ export declare const useInitialFocus: ( /** * Ref to the dialog element */ dialogRef: RefObject, { computeFocus }: InitialFocusOptions) => void;