/** Env var marking this process as a pi-subagents child lane (set by the pool). */ export declare const RUN_ID_ENV = "PI_SUBAGENTS_RUN_ID"; /** Env var carrying the escalation dir (parent's steer dir). */ export declare const ESCALATION_DIR_ENV = "PI_SUBAGENTS_ESCALATION_DIR"; /** * Exit code signaling an escalation to the parent runner (ryan benchmark * §2.3). Mirrors src/lanes/escalation.ts — duplicated on purpose so the child * adapter keeps zero src/ imports. */ export declare const ESCALATION_EXIT_CODE = 42; /** Payload written to a `.escalation.json` file. */ export interface EscalationFilePayload { runId: string; message: string; timestamp: number; } /** Resolve the escalation file path for a run id. */ export declare function escalationFilePath(runId: string, dir: string): string; /** * True when the current session is a pi-subagents subagent session (the env * marker is only ever injected by the parent LanePool at spawn time, so a * main/master session never qualifies — no self-escalation from the master). */ export declare function isSubagentSession(env?: NodeJS.ProcessEnv): boolean; /** sha-256 hex of the escalation message (hash-only trace posture). */ export declare function escalationMessageHash(message: string): string; /** * Atomically write the escalation record for `runId` into `dir` (temp file + * rename, so the parent's consume-once read never observes a partial write). * Creates the dir if missing. Returns the absolute escalation file path. */ export declare function writeEscalationFile(runId: string, message: string, dir: string): string;