/** * Test whether a value is a valid {@link TierError} */ export declare const isTierError: (e: any) => e is TierError; /** * Error subclass raised for any error returned by the API. * Should not be instantiated directly. */ export declare class TierError extends Error { /** * The API endpoint that was requested */ path: string; /** * The data that was sent to the API endpoint. Will be a parsed * JavaScript object unless the request JSON was invalid, in which * case it will be a string. */ requestData: any; /** * The HTTP response status code returned */ status: number; /** * The `code` field in the {@link ErrorResponse} */ code?: string; /** * The HTTP response body. Will be a parsed JavaScript object * unless the response JSON was invalid, in which case it will * be a string. */ responseData: any; /** * An underlying system error or other cause. */ cause?: Error; constructor(path: string, reqBody: any, status: number, resBody: any, er?: any); } /** * Response returned by the Tier API on failure * @internal */ export interface ErrorResponse { status: number; code: string; message: string; } /** * Test whether a value is a valid {@link ErrorResponse} * @internal */ export declare const isErrorResponse: (e: any) => e is ErrorResponse; //# sourceMappingURL=tier-error.d.ts.map