import { HttpClientError } from './http-client-error'; /** * @internal */ export declare class CrowdinError extends Error { /** * The error payload the API returned: the `error`/`errors` member of a Crowdin error response, * or the whole `{ data: … }` body when an application returned the error through the * applications proxy (`/applications/{identifier}/api/{path}`). */ apiError: any; code: number; constructor(message: string, code: number, apiError: any); } /** * @internal */ export declare class CrowdinValidationError extends CrowdinError { validationCodes: { key: string; codes: string[]; }[]; constructor(message: string, validationCodes: { key: string; codes: string[]; }[], apiError: any); } /** * @internal */ export declare function handleHttpClientError(error: HttpClientError): never;