import { type ErrorType } from './constants';
export declare class BaseError extends Error {
    readonly name: string;
    type: ErrorType;
    title: string;
    status: number;
    detail?: string;
    extraData: Record<string, any>;
    constructor(type: ErrorType, title: string, status: number, detail?: string);
    withCause(error: Error): this;
    withExtraData(extraData: Record<string, any>): this;
}
//# sourceMappingURL=BaseError.d.ts.map