/**
 * Iteration pattern builders for the build pipeline stage.
 */
import type { ActivityManifestEntry } from '../../../../types/yaml-workflow';
import type { ExtractedStep, EnhancedCompilationPlan, IterationSpec } from '../../types';
/**
 * Build iteration activities (hook -> worker -> cycle -> done) from an IterationSpec.
 *
 * When key mappings are available (from the compilation plan), uses the mapped
 * key names in the @pipe transforms so array item keys correctly map to tool args.
 */
export declare function buildIterationActivities(spec: IterationSpec, prefix: string, graphTopic: string, idx: number, step: ExtractedStep, stepIndexToActivityId: Map<number, string>, triggerId: string, triggerInputKeys: Set<string>, steps: ExtractedStep[], sessionFields: string[], plan: EnhancedCompilationPlan | null): {
    activities: Record<string, unknown>;
    transitions: Record<string, Array<{
        to: string;
        conditions?: Record<string, unknown>;
    }>>;
    manifest: ActivityManifestEntry[];
    pivotId: string;
    doneId: string;
};
/**
 * Check if a step should be rendered as an iteration based on the compilation plan.
 */
export declare function findIterationSpec(stepIdx: number, plan: EnhancedCompilationPlan | null, step: ExtractedStep, collapsedToCoreIndex?: Map<number, number>): IterationSpec | null;
