import type { Predicate } from '../predicate/index.js';
import type { MappingConfig } from './types.js';
/**
 * Declarative readers (`.map()` configs, templates, predicates) list the steps
 * they read up front, then resolve them with `getStepResultAsync` before
 * evaluating anything. That keeps them off the sync `getStepResult`, which
 * can't serve runs whose step results aren't all in memory.
 */
/** Id of a `{ step }` mapping source: a step id string or a step-like object. */
export declare function stepRefId(step: unknown): string | undefined;
/**
 * Step ids an object mapping config reads: `{ step }` sources (including every
 * arm of an array) and `${stepResults.<id>}` template placeholders. `value`,
 * `fn`, `requestContextPath` and `initData` sources read no step results.
 * Checks run in the same order `runMappingEntry` applies them.
 */
export declare function collectMappingStepRefs(mapConfig: MappingConfig): string[];
/** Step ids a predicate reads through `stepResults.<id>` paths. */
export declare function collectPredicateStepRefs(predicate: Predicate): string[];
/** Whether a predicate reads the run's state through `state` paths. */
export declare function predicateReadsState(predicate: Predicate): boolean;
/**
 * Resolves step ids to their outputs in one batch. Values match
 * `getStepResultAsync`: the output of a successful step, `null` otherwise.
 */
export declare function resolveStepOutputs(ids: readonly string[], getStepResultAsync: (stepId: string) => Promise<unknown>): Promise<Map<string, unknown>>;
//# sourceMappingURL=step-refs.d.ts.map