/** * Structured error codes for the MCP bridge. * Allows callers to distinguish error types without string-matching. */ export declare enum ErrorCode { NOT_CONNECTED = "NOT_CONNECTED", BRIDGE_TIMEOUT = "BRIDGE_TIMEOUT", BRIDGE_ERROR = "BRIDGE_ERROR", CONNECTION_LOST = "CONNECTION_LOST", UNKNOWN_ACTION = "UNKNOWN_ACTION", NO_HANDLER = "NO_HANDLER", PROJECT_NOT_LOADED = "PROJECT_NOT_LOADED", NOT_FOUND = "NOT_FOUND", INVALID_PARAMS = "INVALID_PARAMS" } export declare class McpError extends Error { readonly code: ErrorCode; constructor(code: ErrorCode, message: string); }