import type { Agent } from '@deepseek-ai/dsh-agent'; import type { ConversationBinding, InboundEnvelope } from './types.js'; import type { RestartRecord, RestartStore } from './restart-store.js'; export interface RestartConfig { databasePath: string; ownerRouteId: string; maxModelRequests: number; maxToolCalls: number; taskTimeoutMs: number; /** Restart-safe read-only tools; ordinary owner tool availability is unchanged. */ allowedTools: readonly string[]; } export declare const restartContinuationText = "The serving process completed a planned maintenance restart. Continue the same owner task from the persisted conversation. The restart tool already succeeded; do not restart again or repeat completed operations. Inspect any uncertain external result before further writes. This is a Host continuation, not a new human request."; export declare const restartDigest: (value: unknown) => string; export interface RestartRun { readonly agent: Agent; readonly inboxId: string; readonly continuation?: RestartRecord; canRequest(): boolean; request(reason: string): RestartRecord; requested(): RestartRecord | undefined; checkpoint(): Promise; dispose(): void; } /** Host-owned barriers around the existing native loop; this class never schedules work. */ export declare function attachRestartRun(input: { agent: Agent; inboxId: string; binding: Readonly; envelope: Readonly; continuation?: RestartRecord; store: RestartStore; config: RestartConfig; isRestartSafeTool(agent: Agent, name: string): boolean; authorize(): boolean; authorizeRestart(): boolean; }): RestartRun; //# sourceMappingURL=restart-runtime.d.ts.map