import { ColumnVirtualizer } from '../helpers/columnReveal'; /** * Keeps the table at two tab stops (ASMA-8875): the header row and the body's active row. Every other * control in the header and in the body rows' cells — built in or a consumer's — is `tabindex="-1"`, marked * `data-table-control`, and reached with the arrow keys (`tableKeyboard.ts`). One MutationObserver on the `` * catches rows, cells and controls as they render (sorting, paging, column virtualisation, a consumer's own re-render); * a ResizeObserver syncs again when a table rendered with no box (`display: none`) is shown. * * Only the outermost StyledTable does this. A StyledTable nested in a sub-row (`renderSubRows`) leaves it to the outermost * one, whose observer sees the nested table too: its rows join the outermost body's one tab stop, and its header has none. * A nested `TableRow` still renders its own `tabIndex`; the outermost table corrects it in the same task, before paint. * * Nesting is decided here, once, from the DOM (not React context: a table in a dialog opened from a cell is a React * descendant too, yet owns itself). Also registers the column virtualizer for the keys (`columnReveal.ts`). * * Returns the ref for the `
` — a callback ref, because the table element is replaced when the layout switches * between the sticky and the inline footer — and whether this table is the owner, which alone handles the keys. */ export declare const useTableTabStops: (columnVirtualizer: ColumnVirtualizer) => [(table: HTMLTableElement | null) => void, boolean];