/** * Task-related errors for MCP 2025-11-25 background tasks. * * Per spec §Error Handling, task operations MUST use the following JSON-RPC * error codes: * - `-32602` (Invalid params): unknown/expired taskId on get/result/cancel, * attempting to cancel a terminal task, * invalid cursor on list. * - `-32601` (Method not found): tool-level `taskSupport` violation on * a task-augmented `tools/call`, or a * non-task-augmented call against a tool * whose `taskSupport` is `'required'`. * - `-32603` (Internal error): task subsystem misconfigured (store missing). * * @module errors/task.error */ import { InternalMcpError, PublicMcpError } from './mcp.error'; export declare class TaskNotFoundError extends PublicMcpError { readonly mcpErrorCode: -32602; constructor(taskId: string); readonly taskId: string; toJsonRpcError(): { code: number; message: string; }; } export declare class TaskAlreadyTerminalError extends PublicMcpError { readonly mcpErrorCode: -32602; constructor(status: string); readonly status: string; toJsonRpcError(): { code: number; message: string; }; } export declare class TaskAugmentationNotSupportedError extends PublicMcpError { readonly mcpErrorCode: -32601; constructor(toolName: string); toJsonRpcError(): { code: number; message: string; }; } export declare class TaskAugmentationRequiredError extends PublicMcpError { readonly mcpErrorCode: -32601; constructor(toolName: string); toJsonRpcError(): { code: number; message: string; }; } export declare class TaskStoreNotInitializedError extends InternalMcpError { constructor(); } //# sourceMappingURL=task.error.d.ts.map