import { Virtualizer } from '@tanstack/react-virtual'; /** * Left/Right in a row or the header of a wide table (ASMA-8875): the centre columns are virtualised (above 20 of them, * `useColumnVirtualizer`), so the next control in visual order may sit in a column that is not rendered yet. Visual order * is the fixed-left columns, centre 0…N-1, then the fixed-right ones and the actions column. When the next rendered control * lies beyond unrendered centre columns, the table first scrolls the nearest of them in, waits for it to render, and looks * again, until it finds a control or none is left in that direction. */ /** A centre cell's index among the centre columns (`td`/`th`), the one the virtualizer counts. */ export declare const COLUMN_INDEX_ATTRIBUTE = "data-column-index"; /** A cell after the centre: `right` (fixed-right, and the actions column). */ export declare const COLUMN_SIDE_ATTRIBUTE = "data-column-side"; /** What the keys use of the table's column virtualizer: how many centre columns there are, and the scroll to one. */ export type ColumnVirtualizer = Pick, 'options' | 'scrollToIndex'>; /** Registers the table's column virtualizer for the keys. The entry goes with the `` (a WeakMap). */ export declare const registerColumnReveal: (table: HTMLTableElement, virtualizer: ColumnVirtualizer) => void; /** * Moves the focus to the next control in visual order (Right: `1`, Left: `-1`) from `origin`, revealing unrendered centre * columns on the way. `origin` is a control, or the row itself: then the move starts before the first column (Right, Home) * or after the last one (Left, End). `onNone` runs when there is nothing in that direction. * * Up to its first `await` this runs synchronously, so a control already rendered takes the focus at once; a reveal finishes * later. The search goes one way only — every column passed had no control — and stops for a newer move or a focus * elsewhere. If nothing was found and the origin unmounted while the window scrolled, the focus goes back to the origin's * column, onto the control in it. */ export declare const moveAcrossColumns: (row: HTMLTableRowElement, controlsOf: () => HTMLElement[], origin: HTMLElement, direction: 1 | -1, onNone?: () => void) => Promise;