import type { FeatureAgentState } from '../state.js';
import type { ValidationResult } from './schemas/validation.js';
type SchemaValidator = (data: unknown) => ValidationResult;
/**
 * Factory that creates a validate node for a specific YAML file.
 *
 * On success: resets validationRetries to 0, clears errors.
 * On failure: increments validationRetries, sets errors for repair node.
 *
 * @param successorPhase - The phase that runs AFTER this validation passes.
 *   If provided, skip validation when the successor is already completed — this
 *   proves the validation already passed in a prior run and the pipeline progressed
 *   beyond it. Checking the successor (not the producer) avoids skipping validation
 *   when the producer ran but validation itself failed.
 */
export declare function createValidateNode(filename: string, schema: SchemaValidator, successorPhase?: string): (state: FeatureAgentState) => Promise<Partial<FeatureAgentState>>;
export {};
//# sourceMappingURL=validate.node.d.ts.map