UNPKG

evolution-api-sdk

Version:

Unofficial SDK for the Evolution Whatsapp API v2

20 lines (18 loc) 598 B
declare class EvolutionApiError extends Error { readonly statusCode?: number; readonly details?: unknown; constructor(message: string, cause?: unknown, statusCode?: number); /** * Returns a user-friendly string representation of the error */ toString(): string; /** * Returns a JSON representation suitable for logging */ toJSON(): object; } /** * Extracts error message from various Evolution API error response formats */ declare function extractErrorMessage(response: unknown): string | null; export { EvolutionApiError, extractErrorMessage };