import { SerializableError, ISerializedError } from '../../models/SerializableError.js';
export interface IApiError {
    /**
     * Indicates the response is an error.
     */
    error: boolean;
    /**
     * The same as the status code but returned with the body.
     */
    code: number;
    /**
     * The human-readable error message
     */
    message: string;
    /**
     * The detailed message about the error, if any.
     */
    detail?: string;
}
export declare class ApiError {
    readonly name = "ApiError";
    code: number;
    message: string;
    detail?: string;
    constructor(message: string, code: number);
    constructor(init: IApiError);
    toJSON(): IApiError;
    toString(): string;
}
export interface ISdkError extends ISerializedError {
    /**
     * The raw response from the server.
     */
    response?: string;
    /**
     * Optional detailed message returned by the server.
     */
    detail?: string;
}
export declare class SdkError extends SerializableError {
    /**
     * The raw response from the server.
     */
    response?: string;
    /**
     * Optional detailed message returned by the server.
     */
    detail?: string;
    toJSON(): ISdkError;
}
//# sourceMappingURL=Errors.d.ts.map