import { type AgentIdentityContract, type AgentResumeContext } from "./contracts.ts"; export interface PiResumeLaunchSpec { executable: string; args: readonly string[]; cwd: string; env: Readonly>; } export interface BuildPiResumeLaunchSpecOptions { executable?: string; argsPrefix?: readonly string[]; parentPid: number; parentSessionId: string; taskRef?: string; wakePrompt?: string; } export declare function isAgentIdentity(value: unknown): value is AgentIdentityContract; /** Build and validate the one logical identity shared by orchestration and process supervision. */ export declare function createAgentIdentity(agentId: string, resumeContext: AgentResumeContext): AgentIdentityContract; /** Compare only the immutable identity behind a resumable agent; checkpoint position is mutable. */ export declare function sameAgentResumeIdentity(left: AgentResumeContext, right: AgentResumeContext): boolean; /** * Build an argv-safe launch specification for the exact persisted Pi session behind a logical * agent. The caller passes argv directly to spawn; no shell quoting or command string is involved. */ export declare function buildPiResumeLaunchSpec(agent: AgentIdentityContract, options: BuildPiResumeLaunchSpecOptions): PiResumeLaunchSpec; //# sourceMappingURL=agent-resume.d.ts.map