import { AbstractPlugin } from '../../common/AbstractPlugin.js'; import { ResourceParser } from '../../common/resourceParser.js'; import { ValidationResult } from '../../common/sarif.js'; import { Resource, ValidateOptions } from '../../common/types.js'; import { WasmLoader } from './wasmLoader/WasmLoader.js'; export declare class OpenPolicyAgentValidator extends AbstractPlugin { private resourceParser; private wasmLoader; static toolName: string; private _settings; private validator; constructor(resourceParser: ResourceParser, wasmLoader: WasmLoader); configurePlugin(settings?: any): Promise; doValidate(resources: Resource[], { incremental }: ValidateOptions): Promise; private validateResource; private validatePolicyRule; private adaptToValidationResult; private determineErrorRegion; /** * Ref position fallback is the resource kind to ensure VSC shows proper highlight. */ private createRefPositionFallback; private createRefPosition; private determineContainerPrefix; private determineContainerIndex; /** * Use a path hint to determine the node of the error or closest parent. * * Example: * - Hint: $container.securityContext.readOnlyRootFilesystem and desired value is `true`. * - When $container specifies `securityContext.readOnlyRootFilesystem` then it underlines the incorrect `false` value. * - When $container specifies `securityContext` then it underlines whole context object. * - When $container does not specify `securityContext` then it underlines whole container object. */ private determineClosestErrorNode; }