/** * @fileoverview Graph Validation (SPEC Section 12.2) * * Validates Intent Graph structure invariants (G-INV-*, R-INV-*). * * Per SPEC Section 11.11 (V-*): * - V-1: validateGraph() MUST NOT throw on validation failure * - V-2: validateGraph() MUST return {valid: false, error} for invalid input * - V-3: assertValidGraph() MAY throw ValidationException * * @module helpers/validate-graph */ import type { IntentGraph } from "../core/types/intent-graph.js"; import type { ValidationResult } from "../core/types/validation.js"; export interface ValidateGraphOptions { readonly strictIntentIR?: boolean; readonly strictMissingRoles?: boolean; } /** * Validate Intent Graph structure. * * Per SPEC Section 12.2: * Checks: G-INV-1, G-INV-2, G-INV-3, G-INV-4, R-INV-1, R-INV-2 * * MUST NOT throw on validation failure. * Returns {valid: false, error} for invalid graphs. * * @param graph - The Intent Graph to validate * @returns ValidationResult */ export declare function validateGraph(graph: IntentGraph, options?: ValidateGraphOptions): ValidationResult; /** * Assert graph is valid. * * Per SPEC Section 11.11 (V-3): * MAY throw ValidationException if validation fails. * * @param graph - The Intent Graph to validate * @throws ValidationException if validation fails */ export declare function assertValidGraph(graph: IntentGraph, options?: ValidateGraphOptions): void; //# sourceMappingURL=validate-graph.d.ts.map