import * as React from 'react';
import { HTMLAttributes, MutableRefObject } from 'react';

type FocusTrapProps = HTMLAttributes<HTMLDivElement> & {
    active?: boolean;
    initialFocus?: MutableRefObject<HTMLElement>;
    /**
     * Whether to focus the first element when the initialFocus isn't provided
     *
     * Focuses the container instead
     */
    focusFirst?: boolean;
};
/**
 * A wrapper for the useFocusTrap hook that directly renders it to a div
 */
declare const FocusTrap: React.ForwardRefExoticComponent<HTMLAttributes<HTMLDivElement> & {
    active?: boolean;
    initialFocus?: MutableRefObject<HTMLElement>;
    /**
     * Whether to focus the first element when the initialFocus isn't provided
     *
     * Focuses the container instead
     */
    focusFirst?: boolean;
} & React.RefAttributes<HTMLDivElement>>;

export { FocusTrap, type FocusTrapProps };
