import type { AgentSession } from "../../core/agent-session.ts";
import type { RpcCommand } from "./rpc-types.ts";
type PauseForRun = Extract<RpcCommand, {
    type: "pause_for_run";
}>;
type ResumeForRun = Extract<RpcCommand, {
    type: "resume_for_run";
}>;
type Answer<T> = {
    readonly ok: true;
    readonly data: T;
} | {
    readonly ok: false;
    readonly error: string;
};
export declare function runPauseForRun(session: AgentSession, command: PauseForRun, taskParent: boolean): Promise<Answer<{
    held: true;
    childSeq: number;
}>>;
export declare function runResumeForRun(session: AgentSession, command: ResumeForRun, taskParent: boolean): Promise<Answer<{
    released: boolean;
    reason?: "stale" | "not_held";
    otherHoldLive?: boolean;
    turnId?: string;
}>>;
export {};
//# sourceMappingURL=run-hold-commands.d.ts.map