/// <reference types="node" resolution-mode="require"/>
/** An error interface similar to the ones returned by various Amazon Selling Partner APIs. */
export interface ErrorLike {
    code: string;
    message: string;
    details?: string;
}
/** An object representing an error returned by the Amazon Selling Partner API. */
export declare class AmazonSellingPartnerAPIError extends Error {
    /**
     * Gets the appropriate error message for the given status code.
     *
     * @param statusCode
     */
    static getErrorMessage(statusCode: number): string;
    /** The status code of the response. */
    readonly statusCode: number;
    /** The x-amzn-RateLimit-Limit header of the response. */
    rateLimit: string | null;
    /** The x-amzn-RequestId header of the response. */
    requestId: string | null;
    /** The errors returned by the API. */
    errors: ErrorLike[];
    /**
     * Constructs a new AmazonSellingPartnerAPIError.
     *
     * @param response A response from the Amazon Selling Partner API.
     * @param errors The errors returned by the API.
     */
    constructor(response: Response, errors: ErrorLike[]);
}
//# sourceMappingURL=AmazonSellingPartnerAPIError.d.ts.map