/** * Loop detection for workflow execution * * Detects when a workflow step is executed repeatedly without progress, * which may indicate an infinite loop. */ import type { LoopDetectionConfig } from '../../models/types.js'; import type { LoopCheckResult } from '../types.js'; /** * Loop detector for tracking consecutive same-step executions. */ export declare class LoopDetector { private lastStepName; private consecutiveCount; private config; constructor(config?: LoopDetectionConfig); /** * Check if the given step execution would be a loop. * Updates internal tracking state. */ check(stepName: string): LoopCheckResult; /** * Reset the detector state. */ reset(): void; /** * Get current consecutive count. */ getConsecutiveCount(): number; } //# sourceMappingURL=loop-detector.d.ts.map