interface ClientErrorResponse {
    message: string;
    code: string;
}
declare class AutumnClientError extends Error {
    error: ClientErrorResponse;
    code: string;
    constructor(error: ClientErrorResponse);
    toString(): string;
    toJSON(): {
        message: string;
        code: string;
    };
}
declare const toClientError: (error: any) => {
    data: null;
    error: AutumnClientError;
};

export { AutumnClientError, type ClientErrorResponse, toClientError };
