import { Severity } from '@useoptic/openapi-utilities'; import { Operation, OperationAssertions, RuleContext } from '../types'; type OperationRuleConfig = { name: RuleName; docsLink?: string; matches?: OperationRule['matches']; rule: OperationRule['rule']; severity?: 'info' | 'warn' | 'error'; }; export declare class OperationRule { type: 'operation-rule'; name: RuleName; docsLink?: string; matches?: (operation: Operation, context: RuleContext) => boolean; rule: (operation: OperationAssertions, context: RuleContext) => void; severity?: Severity; constructor(config: OperationRuleConfig); static isInstance(v: any): v is OperationRule; } export {}; //# sourceMappingURL=operation-rule.d.ts.map