/** * The table's two tab stops (ASMA-8875): the header row and the body's active row. The outermost StyledTable * owns both; a StyledTable nested in a sub-row gives up its own (its rows; its header row has none, it is not the owner, and * its built-in header controls render `tabIndex={-1}`). `useTableTabStops` calls these from one * MutationObserver; every write is idempotent, so a nested `TableRow` that re-renders its own `tabIndex` is corrected in * the same task, before paint, and the observer settles. */ /** * The body is one tab stop across the outermost table's own rows and the rows of the tables nested in its sub-rows: the * row the user last worked with (`remembered`), else the row the outermost table has as focused (its React state), else * the first. Every control in those rows leaves the Tab sequence. */ export declare const syncBodyTabStops: (table: HTMLTableElement, remembered: HTMLTableRowElement | null) => void; /** * The header row: the header's one tab stop, like a body row, where Shift+Tab from the body goes. A hidden header, or one * with no control, has none. */ export declare const getHeaderTabStop: (table: HTMLTableElement) => HTMLTableRowElement | undefined; /** * The header works like a row: its row is the one tab stop, and every control in it, a consumer's included, is * `tabindex="-1"`, reached with the arrow keys. */ export declare const syncHeaderTabStop: (table: HTMLTableElement) => void; /** * The body row that holds the tab stop: the row the user last worked with, which may be in a nested table. Asked of any * StyledTable, it answers for the outermost one around it. */ export declare const getActiveBodyRow: (table: HTMLTableElement | null | undefined) => HTMLTableRowElement | undefined; /** * Focus the first tab stop after the outermost table (`'next'`) or the last one before it (`'prev'`). `false` when there * is none, or it would not take the focus: the caller then leaves the key to the browser. */ export declare const focusOutsideTable: (from: HTMLElement, direction: "next" | "prev") => boolean; /** Shift+Tab from the body: the header row, or out of the table backwards when the header has no stop. */ export declare const focusHeaderOrBefore: (table: HTMLTableElement) => boolean;