/** * Transition logic extracted from flow.ts. * * Computes depth/canTransition state and builds transition-related * prompt fragments for child flow activation. */ import type { FlowConfig } from "./agents.js"; export interface TransitionState { currentDepth: number; effectiveMaxDepth: number; canTransition: boolean; } export declare function computeTransitionState(parentDepth: number, maxDepth: number): TransitionState; export declare function buildGuardLine(currentDepth: number, effectiveMaxDepth: number, preventCycles: boolean, parentFlowStack: string[]): string; export declare function buildFlowListSection(canTransition: boolean, discoveredFlows: FlowConfig[]): string; export declare function buildLineage(flowName: string, parentFlowStack: string[]): string; export declare function computeChildPropagation(parentDepth: number, maxDepth: number, parentFlowStack: string[], normalizedFlowName: string): { nextDepth: number; propagatedMaxDepth: number; propagatedStack: string[]; }; //# sourceMappingURL=transition.d.ts.map