import { type ReactElement, type ReactNode, type RefObject } from "react";
import { type IUiFocusHelperConnectors } from "./types.js";
/**
 * @internal
 */
export interface IUiAutofocusOptions {
    active?: boolean;
    refocusKey?: unknown;
    initialFocus?: string | RefObject<HTMLElement | null>;
}
/**
 * Provides a ref that will autofocus the element when it is mounted, or when `refocusKey` changes.
 *
 * @internal
 */
export declare const useUiAutofocusConnectors: <T extends HTMLElement = HTMLElement>({ active, refocusKey, initialFocus, }?: IUiAutofocusOptions) => IUiFocusHelperConnectors<T>;
/**
 * Wrapper that focuses the first focusable child when it mounts, or when `refocusKey` changes.
 *
 * @internal
 */
export declare function UiAutofocus({ root, children, ...options }: {
    root?: ReactElement;
    children: ReactNode;
} & IUiAutofocusOptions): import("react").FunctionComponentElement<any>;
//# sourceMappingURL=UiAutofocus.d.ts.map