import type { AgentConfig } from "../../agents/agents.ts"; import { type AsyncStatus, type SteeringRecoveryDescriptor } from "../../shared/types.ts"; import { type ResolvedSubagentCapabilityCeiling } from "../shared/capability-ceiling.ts"; export interface AsyncResumeParams { id?: string; runId?: string; dir?: string; index?: number; } export interface AsyncResumeDeps { asyncDirRoot?: string; resultsDir?: string; kill?: (pid: number, signal?: NodeJS.Signals | 0) => boolean; now?: () => number; } export interface AsyncResumeOptions { requireSessionFile?: boolean; sessionId?: string; } export type AsyncResumeTarget = { kind: "live" | "revive"; runId: string; asyncDir?: string; state: AsyncStatus["state"]; agent: string; index: number; cwd?: string; sessionFile?: string; model?: string; thinking?: string; recoveryDescriptor?: SteeringRecoveryDescriptor; capabilityCeiling?: ResolvedSubagentCapabilityCeiling; launchContractDigest?: string; }; export interface AsyncRunLocation { asyncDir: string | null; resultPath: string | null; resolvedId?: string; } export declare function findAsyncRunPrefixMatches(prefix: string, asyncDirRoot: string, resultsDir: string): Array<{ id: string; location: AsyncRunLocation; }>; export declare function resolveAsyncRunLocation(params: AsyncResumeParams, asyncDirRoot: string, resultsDir: string): AsyncRunLocation; export declare function readAsyncRecoveryDescriptor(asyncDir: string | undefined): SteeringRecoveryDescriptor | undefined; export declare function resolveAsyncResumeTarget(params: AsyncResumeParams, deps?: AsyncResumeDeps, options?: AsyncResumeOptions): AsyncResumeTarget; export declare function applySteeringRecoveryAgentConfig(agentConfig: AgentConfig, descriptor: SteeringRecoveryDescriptor): AgentConfig; export declare function buildRevivedAsyncTask(target: AsyncResumeTarget, message: string): string; //# sourceMappingURL=async-resume.d.ts.map