export declare class DueStringParseError extends Error { constructor(message: string); } export declare class BatchDueStringParseError extends Error { constructor(message: string); } /** * Compact single-line variant of {@link formatToolExecutionError} for batch * tools that report per-item failures. Unlike `error.message` (which for SDK * errors is just "HTTP 403: Forbidden"), this preserves the API error signals * (status, code, tag) so failures like MAX_ITEMS_LIMIT_REACHED stay * recognizable after aggregation. */ export declare function formatBatchItemError(error: unknown): string; /** * Return task-specific recovery guidance only when Todoist rejected a supplied * natural-language due string. The REST API currently returns the generic * text "Invalid date format" without a stable field/tag, so callers must pass * the known field context before we use that fallback. */ export declare function formatDueStringParseError(error: unknown, { taskContent, dueString, deadlineDate, }: { taskContent: string; dueString: string | undefined; deadlineDate?: string; }): string | undefined; /** * Format tool execution errors in a consistent, actionable format. */ export declare function formatToolExecutionError(error: unknown): string; //# sourceMappingURL=tool-execution-error.d.ts.map