import { MutableRefObject } from 'react';

type UseFocusTrapProps = {
    container: MutableRefObject<HTMLElement>;
    active?: boolean;
    initialFocus?: MutableRefObject<HTMLElement>;
    /**
     * Whether to focus the first element when the initialFocus isn't provided
     *
     * Focuses the container instead
     */
    focusFirst?: boolean;
};
declare const useFocusTrap: ({ container, active, initialFocus, focusFirst, }: UseFocusTrapProps) => void;

export { type UseFocusTrapProps, useFocusTrap };
