import { type GridRenderState } from './GridRendererTypes'; /** Called with the state the grid just drew */ export type GridDrawListener = (renderState: GridRenderState) => void; export type GridA11yFallbackProps = { /** Listen for the grid drawing its canvas. Returns a function to stop listening */ registerDrawListener: (listener: GridDrawListener) => () => void; }; /** * The fallback content of the grid canvas. Never painted, but assistive * technology and browser automation read it in place of the pixels. * * Everything here describes the most recent draw, so it only updates when the * grid draws. Describing the contents walks every visible cell, which is far * too expensive to do on every frame for a grid nobody is inspecting, so the * snapshot is toggled on and off by a button and only tracks the viewport while * it is on. * * The snapshot is a plain table rather than divs with ARIA roles, as fallback * content is never laid out and native table semantics come with the column * associations for free. It is a `table` and not a `grid` because `grid` * promises the cell by cell keyboard navigation that only the canvas * implements. */ export declare function GridA11yFallback({ registerDrawListener, }: GridA11yFallbackProps): JSX.Element; export default GridA11yFallback; //# sourceMappingURL=GridA11yFallback.d.ts.map