import { ResourceParser } from '../../common/resourceParser.js'; import { ToolPlugin, ValidationResult } from '../../common/sarif.js'; import { CustomSchema, Plugin, Resource, ValidateOptions } from '../../common/types.js'; import { RuleMap } from '../../config/parse.js'; import { Fixer } from '../../sarif/fix/index.js'; import { PluginMetadataWithConfig, RuleMetadataWithConfig } from '../../types.js'; /** * Validator for developing custom policies. */ export declare class DevCustomValidator implements Plugin { private parser; private fixer; private _source?; private _currentHash?; private _currentValidator?; private _handleReload?; private _lastConfig?; private _debug; protected _toolComponentIndex: number; constructor(parser: ResourceParser, fixer: Fixer | undefined); onReload(callback: (hash: String) => void): void; private hmr; get name(): string; get metadata(): PluginMetadataWithConfig; get toolComponent(): ToolPlugin; get toolComponentIndex(): number; set toolComponentIndex(value: number); get rules(): RuleMetadataWithConfig[]; get enabled(): boolean; set enabled(value: boolean); hasRule(rule: string): boolean; isRuleEnabled(rule: string): boolean; configure(config: { rules?: RuleMap | undefined; settings?: any | undefined; }): Promise; validate(resources: Resource[], options: ValidateOptions): Promise; clear(): Promise; registerCustomSchema(schema: CustomSchema): void | Promise; unregisterCustomSchema(schema: Omit): void | Promise; unload(): Promise; }