/**
 * Fork execution context — AsyncLocalStorage-based depth tracking.
 *
 * runForkedAgent() enters a child context at depth = parent + 1. Any tool
 * executed inside that fork (including a nested `agent` tool call) reads the
 * live depth via getCurrentForkDepth(), so the MAX_FORK_DEPTH guard operates
 * on real values instead of a hardcoded 0.
 *
 * Top-level (no fork active) → depth 0.
 */
/** Current fork depth: 0 at top level, N inside an N-deep forked agent. */
export declare function getCurrentForkDepth(): number;
/** Run fn inside a fork context at the given depth. */
export declare function runAtForkDepth<T>(depth: number, fn: () => T): T;
