import { ThrowCauseRequiredConfig } from '@webpieces/rules-config'; import type { EditContext, Violation } from '../types'; import { EditRuleBase } from '../rule-base'; import { FixHint } from '../fix-hint'; export declare class ThrowCauseRequiredRule extends EditRuleBase { constructor(config: ThrowCauseRequiredConfig); readonly description = "When rethrowing with added context, chain the original exception: throw new Error(\"msg\", { cause: error })"; readonly files: string[]; get fixHint(): FixHint; check(ctx: EditContext): readonly Violation[]; }