import type { ActionResultStreamEvent } from "#protocol/message.js"; export declare const TASK_WAIT_TOOL_NAME = "eve__task_wait"; export declare const TASK_CANCEL_TOOL_NAME = "eve__task_cancel"; /** The task tools' names. */ export declare const TASK_TOOL_NAMES: readonly string[]; /** * Whether a tool call is the model managing its own tasks. The stream keeps * these calls so evals and traces can see them, but activity surfaces hide * them: people see the tasks, not the model waiting on or stopping them. The * `eve` namespace is reserved, so no authored tool matches. */ export declare function isTaskControlTool(toolName: string): boolean; export declare const TOO_MANY_TASKS_CODE = "TOO_MANY_TASKS"; export declare const UNKNOWN_TASK_CODE = "UNKNOWN_TASK"; /** * Whether a tool result is the session refusing a task call for the model * to retry. Its message tells the model how to recover, so activity surfaces * keep it out of view. Only a failed result counts: an authored tool can * return the same `code` as ordinary output. */ export declare function isTaskRetryRefusal(event: ActionResultStreamEvent): boolean;