import { RefObject } from 'react'; declare const FIRST = "fist"; declare const NONE = "none"; export type InitialFocus = typeof FIRST | typeof NONE | number; export interface Options { /** * @zh 我们需要首次聚焦的 HTML 元素 * @en HTML Element we should draw focus to first */ initialFocus?: InitialFocus; /** * @zh 添加额外需要聚焦的元素 * @en additional tabbable elements to be added */ tabbableElements?: string; } /** * Adds focus trap effect to a given ref. */ export declare const useFocusTrap: (ref: RefObject, isActive: boolean, options?: Options) => void; export {};