import { type MutableRefObject, type RefObject } from 'react';
/**
* Focusing on the passed element ref after initial mount.
* Will only focus on initial mount.
*
* https://developer.mozilla.org/en-US/docs/Web/API/HTMLSelectElement/autofocus
*
* ```tsx
* import useAutoFocus from '@atlaskit/ds-lib/use-auto-focus';
*
* const elementRef = useRef();
* useAutoFocus(elementRef, true);
*
* ;
* ```
*
* @param ref
* @param autoFocus
*/
export default function useAutoFocus(ref: RefObject | MutableRefObject | undefined, autoFocus: boolean): void;