import { KeyboardEvent } from 'react'; import { CategorySelection, ChartStatus } from '../types'; import { RankingRow } from '../engine/ranking'; /** Retain accepted observations during refreshes; only a new identity clears them. */ export declare function useAcceptedRows(incoming: readonly R[] | null, status: ChartStatus, resetKey?: string | number): { rows: readonly R[] | null; firstLoad: boolean; skeleton: boolean; }; export declare function useCategoryState(rows: readonly RankingRow[], interactive: boolean, onChange: ((selection: CategorySelection | null) => void) | undefined, resetKey?: string | number, columns?: number, selectedId?: string | null, onSelectedIdChange?: (id: string | null) => void, hasAcceptedRows?: boolean, externalHoverId?: string | null): { active: RankingRow | undefined; pinned: string | null; glideRef: (node: Element | null) => void; bind: (id: string, index: number) => { 'data-glide-id': string; ref: (node: HTMLButtonElement | null) => void; tabIndex: number; 'aria-pressed': boolean; onPointerEnter: () => void; onPointerLeave: () => void; onFocus: () => void; onBlur: () => void; onClick: () => void; onKeyDown: (event: KeyboardEvent) => void; }; };