/**
 * Every buffered step of a run carries the request that produced it, and that
 * request's `body` holds the tool schemas plus the system instruction — data
 * that is invariant across the steps of a single run and, in practice,
 * byte-identical. Persisting a full copy per step made a suspended snapshot
 * grow linearly with step count, and a HITL agent that takes a dozen tool calls
 * before its first approval could push a single document past MongoDB's hard
 * 16 MB limit, failing the write and stranding the run.
 *
 * So the snapshot stores each distinct request once and has the steps point at
 * it. This is purely a storage representation: callers still see a `request` on
 * every step after rehydration.
 */
type StepLike = {
    request?: unknown;
};
export declare function dedupeStepRequests<T extends StepLike>(steps: T[]): {
    steps: T[];
    requests: unknown[] | undefined;
};
export declare function rehydrateStepRequests<T extends StepLike>(steps: T[], requests: unknown[] | undefined): T[];
export {};
//# sourceMappingURL=step-request-dedupe.d.ts.map