import { ColumnRegular, ColumnTypes, DataType } from '@revolist/revogrid'; /** Snapshot of the RevoGrid properties that the Gantt plugin temporarily owns. */ export interface GanttOriginalGridState { /** Row data present before the plugin projected tasks into Gantt rows. */ readonly source: DataType[]; /** Column definitions present before the plugin appended the timeline column. */ readonly columns: ColumnRegular[]; /** Column type registry present before the plugin registered Gantt/date types. */ readonly columnTypes: ColumnTypes; /** Column resize flag present before the plugin enabled resizing. */ readonly resize: boolean; /** Inline `position` style present before the plugin positioned overlays. */ readonly inlinePosition: string; } /** * Capture the grid state that must be restored when the plugin is destroyed. * * The plugin replaces source rows with projected rows and appends managed * columns, so keeping this snapshot avoids leaking Gantt-specific state into * the host grid after plugin removal. */ export declare function captureOriginalGridState(revogrid: HTMLRevoGridElement): GanttOriginalGridState; /** * Restore the grid properties captured before Gantt initialization. * * This intentionally restores only the properties owned by the plugin. Custom * element properties such as `gantt` and `ganttDependencies` are managed * separately because applications may still want to read them after teardown. */ export declare function restoreOriginalGridState(revogrid: HTMLRevoGridElement, state: GanttOriginalGridState): void; //# sourceMappingURL=grid-state.d.ts.map