import React from 'react'; import type { KeyValueRow } from '../../../../../types/api/query'; export interface ReactList { scrollTo: (index: number) => void; scrollAround: (index: number) => void; getVisibleRange: () => [number, number]; } interface UseScrollToSelectedParams { selectedRow: KeyValueRow | null | undefined; rows: KeyValueRow[] | undefined; reactListRef: React.RefObject; } /** * Custom hook to handle scrolling to selected row in react-list * Only scrolls if the selected item is not currently visible * When scrolling, positions the item in the middle of the viewport */ export declare function useScrollToSelected({ selectedRow, rows, reactListRef }: UseScrollToSelectedParams): void; export {};