/** * Error codes and custom error class for Matimo */ export declare enum ErrorCode { INVALID_SCHEMA = "INVALID_SCHEMA", EXECUTION_FAILED = "EXECUTION_FAILED", AUTH_FAILED = "AUTH_FAILED", TOOL_NOT_FOUND = "TOOL_NOT_FOUND", FILE_NOT_FOUND = "FILE_NOT_FOUND", VALIDATION_FAILED = "VALIDATION_FAILED", RATE_LIMIT_EXCEEDED = "RATE_LIMIT_EXCEEDED", TIMEOUT = "TIMEOUT", NETWORK_ERROR = "NETWORK_ERROR", INVALID_PARAMETER = "INVALID_PARAMETER", UNKNOWN_ERROR = "UNKNOWN_ERROR", POLICY_DENIED = "POLICY_DENIED", POLICY_TIER_BLOCKED = "POLICY_TIER_BLOCKED" } /** * Custom error class for Matimo */ export declare class MatimoError extends Error { code: ErrorCode; details?: Record | undefined; cause?: Error | unknown; constructor(message: string, code: ErrorCode, details?: Record | undefined, cause?: Error | unknown); toJSON(): Record; } /** * Normalize an HTTP/Axios-style error into a MatimoError preserving useful metadata. * This avoids importing axios in the errors module and works with any object * that follows the common `error.response` shape. */ export declare function fromHttpError(error: unknown, message?: string): MatimoError; /** * Create a validation error with context */ export declare function createValidationError(message: string, details?: Record): MatimoError; /** * Create an execution error with context */ export declare function createExecutionError(message: string, details?: Record): MatimoError; //# sourceMappingURL=matimo-error.d.ts.map