import { Optional } from '@stoplight/types'; import { IDocument } from './document'; import { IRule, IThen, SpectralDiagnosticSeverity } from './types'; export declare class Rule { readonly name: string; readonly description: string | null; readonly message: string | null; readonly severity: SpectralDiagnosticSeverity; readonly resolved: boolean; readonly formats: Optional; readonly then: IThen[]; readonly given: string[]; get enabled(): boolean; constructor(name: string, rule: IRule); matchesFormat(formats: IDocument['formats']): boolean; }