import { LogWriter } from "../writer";
import { BaseContainer } from "./base";
export type ErrorConfig = {
    id: string;
    message: string;
    code?: string;
    name?: string;
    type?: string;
    tags?: Record<string, string>;
    metadata?: Record<string, any>;
};
export declare class Error extends BaseContainer {
    protected message: string;
    protected code?: string;
    protected errorType?: string;
    protected name?: string;
    constructor(config: ErrorConfig, writer: LogWriter);
    data(): any;
}
