/** * Cycle detection and flow result metadata — extracted from executor.ts. */ import { type SingleResult } from "../types/flow.js"; export declare function getFlowCycleViolations(requestedNames: Set, ancestorFlowStack: string[]): string[]; /** * Shallow-merge helper: copies audit-loop metadata fields from `source` * onto `target` without mutating the target's identity reference. */ export declare function preserveMetadata(target: SingleResult, source?: SingleResult): void; export declare function shouldFailover(result: SingleResult): boolean; /** * Patterns indicating transient connection / network errors worth retrying * at the sub-agent level after model failover is exhausted. */ export declare const CONNECTION_ERROR_PATTERNS: RegExp[]; /** * Returns true when stderr + errorMessage match a transient connection pattern * and do not match any non-retryable denylist pattern. */ export declare function isRetryableConnectionError(stderr: string, errorMessage?: string): boolean; export declare function createGhostResult(type: string, intent: string, aim: string, model?: string, maxContextTokens?: number): SingleResult; export interface CycleHistoryEntry { cycle: number; buildOutputs: string[]; verdict: string; feedback?: string; buildFeedbacks?: (string | null)[]; } //# sourceMappingURL=cycle-guard.d.ts.map