import type { Agent } from '@deepseek-ai/dsh-agent'; import type { SessionEvent } from '@deepseek-ai/dsh-session'; export declare function needsTaskPreamble(name: string, args: unknown): boolean; /** Read-only calls that return a bounded result without starting a workflow. */ export declare function isLightweightLookup(name: string, args: unknown): boolean; /** Only confirmed task speech bound to this exact user input releases work. */ export declare function hasTaskPreamble(events: readonly SessionEvent[]): boolean; /** An attempted task announcement that failed is not a completed user task. */ export declare function failedTaskPreamble(events: readonly SessionEvent[]): boolean; export declare const FAILED_PREAMBLE_NOTICE = "\u672C\u8F6E\u4EFB\u52A1\u524D\u544A\u77E5\u5931\u8D25\uFF0C\u4EFB\u52A1\u8FD8\u6CA1\u5F00\u59CB\uFF0C\u4E0D\u80FD\u4EC5\u91CD\u590D\u51C6\u5907\u505A\u4EC0\u4E48\u5C31\u7ED3\u675F\u3002\u6839\u636E\u5F53\u524D\u5B9E\u9645\u5DE5\u5177\u5217\u8868\u4FEE\u6B63 expectedTools\uFF0C\u518D\u7528 partner_chat_say \u7684 text \u544A\u77E5\u5E76\u7EE7\u7EED\u6267\u884C\u3002\u672A\u8C03\u7528\u751F\u56FE\u4E0D\u4EE3\u8868\u751F\u56FE\u670D\u52A1\u5931\u8D25\u3002\u82E5\u786E\u5B9E\u4E0D\u80FD\u7EE7\u7EED\uFF0C\u4F7F\u7528 partner_chat_reply taskDisposition=blocked\u3001taskReason \u4E0E taskEvidence\uFF08\u672A\u6267\u884C\u7528 not_executed\uFF09\u6309\u4E8B\u5B9E\u8BF4\u660E\u3002"; export declare class TaskPreambleGate { private readonly events; private readonly send; private readonly active; private readonly short; private readonly unified; private readonly sent; constructor(events: () => readonly SessionEvent[], send: (text: string) => Promise, active?: () => boolean, short?: () => boolean, unified?: boolean); acknowledge(text: string, inlineDetails?: boolean): Promise; before(name: string, args: unknown): Promise; } /** Scoped to one active channel reply; no extra model or hardcoded spoken text. */ export declare function installTaskPreamble(agent: Agent, send: (text: string) => Promise, active?: () => boolean, short?: () => boolean, unified?: boolean): () => void; //# sourceMappingURL=task-preamble.d.ts.map