import type { GridState } from '../../core/grid/index.js'; export declare function setGridContext(grid: GridState): void; /** * The grid a part is drawn inside, read from context. * * This is how a feature's `component` reaches the grid it belongs to: it is * mounted inside the grid's root, so the context is already there and no props * are handed to it. Throws outside a grid, which is a mistake rather than a * state to handle. */ export declare function getGridContext(): GridState; export declare function getGridOrNull(): GridState | null; export declare function setGridElement(element: () => HTMLElement | null): void; /** * Reads the grid's own root element, for the work that needs the DOM: a * listener, a measurement, a layer drawn over the rows. * * It answers a getter rather than the element, because the element arrives * after the first paint. Call it when you need it; outside a grid, and before * the root is bound, it answers `null`. */ export declare function getGridElement(): () => HTMLElement | null;