export type ResponseErrorDetails = { responseBody?: string; apiErrorCode?: string; apiErrorMessage?: string; }; export type ParsedResponseError = { errorDetails: ResponseErrorDetails; errorSummary?: string; }; type LogLevel = "debug" | "info" | "warn" | "error"; type ResponseLogger = { [key in LogLevel]: (message: string, ...args: any[]) => void; }; export declare function parseResponseErrorDetails(res: Response): Promise; export declare function formatResponseErrorSummary(details: ResponseErrorDetails): string | undefined; export declare function parseResponseError(res: Response): Promise; export declare function logResponseError(args: { logger: ResponseLogger; level?: LogLevel; res: Response; message: string; extra?: Record; }): Promise<{ errorDetails: ResponseErrorDetails; errorSummary: string | undefined; }>; export {}; //# sourceMappingURL=responseError.d.ts.map