import { HTTPError } from '@segment/actions-core/request-client'; export interface ResponseError extends HTTPError { response: HTTPError['response'] & { data: { code: string | number; message: string; more_info: string; status?: number; statusCode?: number; errors?: { message: string; }[]; }; headers?: Response['headers']; }; code?: string; status?: number; retry?: boolean; } export interface ErrorDetails { message: string; code: string; status?: number; class?: string; } export declare function getErrorDetails(error: any): ErrorDetails | undefined;