import type { Agent } from '@deepseek-ai/dsh-agent'; import type { SessionEvent } from '@deepseek-ai/dsh-session'; export interface ReplyCompletionState { userId: string; phase: 'complete' | 'execute' | 'settle'; files: string[]; deliveries: string[]; } /** Evidence for the latest user input in this turn, never a semantic guess from prose. */ export declare function replyCompletionState(events: readonly SessionEvent[], inspectOnly?: boolean): ReplyCompletionState | undefined; export declare const INCOMPLETE_REPLY = "\u54CE\u5440\uFF0C\u8FD9\u6B21\u5361\u4F4F\u5566\uFF0C\u6CA1\u80FD\u7B54\u5B8C\u3002\u5148\u5230\u4F1A\u8BDD\u91CC\u770B\u770B\u8FDB\u5EA6\uFF0C\u518D\u6233\u6211\u7EE7\u7EED\u5427\uFF5E"; /** Same-turn recovery with a bounded request budget and a settlement-only tool gate. */ export declare class ReplyCompletionGuard { private readonly agent; private readonly active; private userId; private attempts; private settling; failed: boolean; constructor(agent: Agent, active: () => boolean); stop: ({ agent, signal }: { agent: Agent; signal: AbortSignal; }) => void; deny(name: string, args: unknown): string | undefined; } //# sourceMappingURL=reply-completion.d.ts.map