/** * Shared error helpers for tool handlers. */ import type { HandlerContext } from "./types.js"; /** * Resolve a notebook URL from either an explicit URL, a notebook ID, or the * currently active notebook. Throws if no notebook can be identified. */ export declare function resolveNotebookUrl(ctx: HandlerContext, args: { notebook_id?: string; notebook_url?: string; }): string; export declare function sanitizeErrorMessage(errorMsg: string): string; export declare function getSanitizedErrorMessage(error: unknown): string; export declare function getErrorAuditArgs(tool: string, error: unknown): Record;