/** * Sequential Dependency Validator * * Validates using learned patterns from patterns.json * Prevents parallelization errors by checking meta-learned dependencies. */ import type { Phase } from '../../types/pattern.js'; import { type PhasePatterns } from './storage.js'; /** * Dependency validation result */ export interface DependencyValidationResult { /** Whether validation passed (high confidence deps present) */ passed: boolean; /** High confidence dependencies (>0.7) that should be checked */ requiredDeps: string[]; /** Warnings for potential issues */ warnings: string[]; /** Phase being validated */ phase: Phase; } /** * Dependency check context - how to verify if a dependency is satisfied */ export type DependencyChecker = (depId: string) => boolean; /** * Default dependency checker (always returns true - conservative) * * @param depId - Dependency identifier * @returns true (assumes dependency is satisfied) */ export declare function defaultDependencyChecker(depId: string): boolean; /** * Validate dependencies for a phase using learned patterns * * @param phase - Phase to validate * @param checker - Optional custom dependency checker * @returns Validation result with warnings */ export declare function validateDependencies(phase: Phase, checker?: DependencyChecker): Promise; /** * Get all learned dependencies for a phase * * @param phase - Phase to get dependencies for * @returns List of learned dependencies with metadata */ export declare function getAllDependencies(phase: Phase): Promise; /** * Format validation result as human-readable string * * @param result - Validation result * @returns Formatted string */ export declare function formatValidationResult(result: DependencyValidationResult): string; /** * Get safe parallel execution patterns for a phase * * @param phase - Phase to get patterns for * @returns List of parallel success patterns */ export declare function getSafeParallelPatterns(phase: Phase): Promise; //# sourceMappingURL=validator.d.ts.map