import { type Json, type Target, type StartingTarget } from "./protocol.js";
import type { HandOffQueue } from "./hand-off-queue.js";
type ClosedTarget = Target | StartingTarget;
export declare function markWorkerClosed(target: ClosedTarget, terminal: string): Promise<void>;
export declare function intentionallyClosed(target: ClosedTarget): Promise<boolean>;
export declare function markPaneClosed(server: string, pane: Json): Promise<void>;
/** Called on the worker's computer only after the sender read the done return.
 * Recheck this exact ended turn and skip any new work, background work or inbox. */
export declare function closeFinishedWorker(input: unknown, queue?: HandOffQueue): Promise<Json>;
/** An agent closing the pane it runs in, once its work is committed and reported:
 * the sanctioned form of `herdr pane close`, which an agent's auto mode refuses.
 * Only the caller's own pane (named by its terminal variables) is ever closed, and
 * after the reply, so the agent's `phren` call still returns. */
export declare function closeOwnPane(input: unknown, delayMs?: number): Promise<Json>;
export {};
