import type { AxiosResponse } from "axios";
declare class AkahuError extends Error {
    /**
     * Flag that can be used to detect exceptions thrown by the Akahu SDK.
     */
    isAkahuError: boolean;
    /**
     * Legacy static property for backwards compatibility. Prefer the instance
     * property `isAkahuError` instead.
     * @deprecated
     */
    static isAkahuError: boolean;
}
/**
 * Error type for error responses received from the Akahu API.
 * An error response is characterised by a non 2XX status code and/or a body
 * payload that contains `success: false` along with an accompanying error message.
 *
 * @noInheritDoc
 * @category Error
 */
export declare class AkahuErrorResponse extends AkahuError {
    /**
     * The response status code.
     */
    status: number;
    /**
     * The full {@link https://axios-http.com/docs/res_schema AxiosReponse}
     * object from axios.
     */
    response: AxiosResponse;
    /** @internal */
    static oAuthErrorCodeMap: Record<string, string>;
    /** @internal */
    constructor(response: AxiosResponse);
}
/**
 * Error type for errors that occur during the webhook validation process.
 *
 * @noInheritDoc
 * @category Error
 */
export declare class AkahuWebhookValidationError extends AkahuError {
}
export {};
