/** * Array source detection for iteration patterns. * * Locates prior step results that contain arrays matching the * iteration data, using key-overlap and length-match strategies. */ import type { ExtractedStepLike } from './types'; /** * Find a prior step whose result contains an array field that is the likely * data source for the iteration. Uses two strategies: * * 1. **Key overlap**: Array items have keys matching the iteration's varying keys * (e.g., links[].href matches the varying key `url`) * 2. **Length match**: Array length matches the run length (fallback) * * Searches recursively through nested objects, returning a dot-path * (e.g., "links") so the YAML mapping references the correct depth. */ export declare function findArraySource(steps: ExtractedStepLike[], runStartIndex: number, runLength: number, varyingKeys?: string[]): { stepIndex: number; fieldName: string; } | null;