/**
 * Manages the table grid cache and observes DOM changes that require grid rebuilding.
 * Watches for structural changes (rows/cells added/removed) and attribute changes
 * (colspan, rowspan, hidden, style) that affect grid layout and focusability.
 */
declare function useGridCache(tableRef: HTMLTableElement | null, enabled: boolean): {
    getTableGrid: (_tableRef: HTMLTableElement) => {
        grid: (Element | undefined)[][];
        positions: Map<Element, {
            x: number;
            y: number;
        }>;
    };
    activeCell: Element | null;
    setActiveCell: import("react").Dispatch<import("react").SetStateAction<Element | null>>;
};
export { useGridCache };
