export declare class CoreError extends Error {
    readonly reason: string;
    readonly originalError?: Error;
    readonly info?: Record<string, any>;
    constructor(message: string, { reason, error, ...info }?: Record<string, any> & {
        reason?: string;
        error?: Error;
    });
    toJSON(): {
        message: string;
        stack: string | undefined;
        reason: string;
        info: Record<string, any> | undefined;
    };
}
