export type BackendRecoveryCommand = "renew" | "close" | "recover" | "retry-callback"; export declare function isBackendTaskWatchId(value: unknown): value is string; export declare function normalizeBackendStatusTarget(params: Record): Record; /** Backend maintenance is anchored to one persisted task, never the thread's current task. */ export declare function backendRecoveryTarget(params: Record, command: BackendRecoveryCommand): string | undefined; export declare function backendRecoveryToolArgs(command: BackendRecoveryCommand, params: Record, context: { sessionKey?: unknown; }, options?: { storeDir?: string; codexHome?: string; defaultMinutes?: number; }): string[] | undefined; /** Run before conversation routing, which must never reinterpret a backend recovery target. */ export declare function assertBackendRecoveryCliTarget(command: string | undefined, options: Record): void; /** Report observed delivery state without turning a retry attempt into a delivery receipt. */ export declare function formatBackendRecoveryCommandResult(result: unknown, command: BackendRecoveryCommand): string | undefined;