/** * Flow depth configuration, env/CLI flag parsing, and cycle detection. * * Extracted from index.ts for single-responsibility and testability. */ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent"; export declare const DEFAULT_MAX_TRANSITION_DEPTH = 3; export declare const FLOW_DEPTH_ENV = "PI_FLOW_DEPTH"; export declare const FLOW_MAX_DEPTH_ENV = "PI_FLOW_MAX_DEPTH"; export declare const FLOW_STACK_ENV = "PI_FLOW_STACK"; export declare const FLOW_PREVENT_CYCLES_ENV = "PI_FLOW_PREVENT_CYCLES"; export declare const FLOW_TOOL_OPTIMIZE_ENV = "PI_FLOW_TOOL_OPTIMIZE"; export interface FlowDepthConfig { currentDepth: number; maxDepth: number; canTransition: boolean; ancestorFlowStack: string[]; preventCycles: boolean; } export declare function parseNonNegativeInt(raw: unknown): number | null; export declare function parseBoolean(raw: unknown): boolean | null; export declare function parseFlowStack(raw: unknown): string[] | null; export declare function resolveFlowDepthConfig(pi: ExtensionAPI): FlowDepthConfig; //# sourceMappingURL=depth.d.ts.map