import { RefCallback } from 'react'; import { ScrollIntoViewOptions } from '../utils/scroll-into-view'; export interface KeepActiveItemIntoViewOptions extends ScrollIntoViewOptions { activeItem?: TItem; getKey?: (item: TItem) => string; } export declare function useKeepActiveItemIntoView(options?: KeepActiveItemIntoViewOptions): [ RefCallback, (item: TItem, element: TItemElement | null) => void, (item?: TItem, options?: ScrollIntoViewOptions) => void ];