export interface ErrorSpec {
    message: string;
    code: string;
    retry: boolean;
    details?: any;
    scriptError?: boolean;
}
export declare class GenericError extends Error {
    code: string;
    retry: boolean;
    details: any;
    scriptError: boolean;
    constructor(spec: ErrorSpec);
}
export declare function createError(spec: ErrorSpec): GenericError;
//# sourceMappingURL=error.d.ts.map