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; } /** * Provides a ref that will autofocus the element when it is mounted, or when `refocusKey` changes. * * @internal */ export declare const useUiAutofocusConnectors: ({ active, refocusKey, initialFocus, }?: IUiAutofocusOptions) => IUiFocusHelperConnectors; /** * 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; //# sourceMappingURL=UiAutofocus.d.ts.map