/** * The **Grid Doctor** — inspects the live grid configuration and reports real, * specific problems: duplicate column ids, settings that cost performance, * accessibility gaps, and deprecated or contradictory options. * * Every finding is derived from the actual `GridOptions` and `ColumnDef`s, not * guessed by a language model. The model's only job is to phrase the findings — * which is what makes "why is my grid slow?" produce *your* misconfiguration * rather than a generic listicle. * * @packageDocumentation */ import type { GridApi } from '../../core/grid-api'; import type { GridOptions } from '../../types/grid.types'; /** How serious a finding is. */ export declare enum DiagnosticSeverity { /** Certain to be a bug or a broken behaviour. */ Error = "error", /** Very likely wrong, or a real cost the user probably did not intend. */ Warning = "warning", /** Worth knowing; not necessarily wrong. */ Info = "info" } /** Which lens produced a finding, so a targeted question can filter to it. */ export declare enum DiagnosticCategory { Configuration = "configuration", Performance = "performance", Accessibility = "accessibility", Data = "data" } /** One diagnosed problem. */ export interface Diagnostic { readonly severity: DiagnosticSeverity; readonly category: DiagnosticCategory; /** What is wrong, in one sentence. */ readonly message: string; /** What to do about it. */ readonly fix: string; } /** Inspects a grid and reports configuration, performance, and a11y findings. */ export declare class GridDoctor { private readonly api; private readonly options; constructor(api: GridApi, options: GridOptions); /** Runs every check. Ordered most-severe first so a truncated reply keeps the important part. */ diagnose(): Diagnostic[]; /** Column-definition integrity: duplicate ids, missing fields, conflicting widths. */ private checkColumns; /** Settings that cost render or data-pipeline time. */ private checkPerformance; /** Gaps that would hurt screen-reader or keyboard users. */ private checkAccessibility; /** Deprecated or contradictory options. */ private checkDeprecations; } //# sourceMappingURL=grid-doctor.d.ts.map