import type { IActionHandler, ICommand } from "sprotty"; import type { Action } from "sprotty-protocol"; import { type Diagnostic } from "@hylimo/diagram-protocol"; /** * Error state of the diagram */ export interface ErrorState { /** * Array of error diagnostics */ diagnostics: Diagnostic[]; } /** * Provides the current state of the diagram, tracking whether it is in a valid or error state. * Listens to actions to update the state accordingly. */ export declare class DiagramStateProvider implements IActionHandler { /** * Whether the diagram is in a valid state. * False when an error has occurred. */ private _valid; /** * Gets whether the diagram is in a valid state */ get valid(): boolean; handle(action: Action): ICommand | Action | void; } //# sourceMappingURL=diagramStateProvider.d.ts.map