export interface ValidationCommand { name: string; command: string; args: string[]; } export interface ValidationResult { success: boolean; command: string; output: string; error?: string; } /** * Detect validation commands from AGENTS.md or package.json */ export declare function detectValidationCommands(cwd: string): ValidationCommand[]; /** * Detect lint-only commands for lightweight intermediate-iteration checks. * Much faster than build (5-15s vs 30-60s), good for catching syntax errors mid-loop. * Returns empty array if no lint command is available — caller should skip validation. */ export declare function detectLintCommands(cwd: string): ValidationCommand[]; /** * Run a lint validation command with a short timeout (lint is fast). */ export declare function runLintValidation(cwd: string, command: ValidationCommand): Promise; /** * Detect build-only commands for always-on build validation. * Unlike detectValidationCommands(), this: * 1. Only returns build/typecheck commands (not test/lint) * 2. Has TypeScript fallback (npx tsc --noEmit) when no build script exists * 3. Is designed to be called per-iteration (re-detects if package.json appears mid-loop) */ export declare function detectBuildCommands(cwd: string): ValidationCommand[]; /** * Run a single build validation command with a shorter timeout. */ export declare function runBuildValidation(cwd: string, command: ValidationCommand): Promise; /** * Run a single validation command */ export declare function runValidation(cwd: string, command: ValidationCommand): Promise; /** * Run all validation commands. * Runs every command regardless of individual failures — this gives the agent * a complete picture of all issues, enabling multi-fix iterations. */ export declare function runAllValidations(cwd: string, commands: ValidationCommand[]): Promise; /** * Format validation errors for feedback to the agent */ export declare function formatValidationFeedback(results: ValidationResult[]): string; //# sourceMappingURL=validation.d.ts.map