import { BaseRepopoCommand } from "../baseCommand.js"; /** * This tool enforces policies across the code base via a series of handler functions. The handler functions are * associated with a regular expression, and all files matching that expression are passed to the handler function. * * By default, the list of files to check comes from `git ls-files. You can also pipe in file names from stdin. For * example: * * `git ls-files -co --exclude-standard --full-name | repopo check --stdin --verbose` */ export declare class CheckPolicy extends BaseRepopoCommand { static readonly summary = "Checks and applies policies to the files in the repository."; static readonly flags: { readonly config: import("@oclif/core/interfaces").OptionFlag; readonly fix: import("@oclif/core/interfaces").BooleanFlag; readonly stdin: import("@oclif/core/interfaces").BooleanFlag; }; run(): Promise; /** * Executes all policies against the provided paths. * * @param pathsToCheck - All paths that should be checked. Paths should be relative to the repository root. * @param context - The context. */ private checkAllFiles; /** * Given a string that represents a path to a file in the repo, determines if the file should be checked, and if so, * routes the file to the appropriate handlers. * * @param relPath - A git repo-relative path to a file. */ private checkOrExcludeFile; private routeToPolicies; private runPolicyOnFile; private isPolicyExcluded; private executePolicyHandler; private handlePolicyResult; private handleFixResult; private handlePolicyErrorFixResult; private handleFailureResult; private attemptResolution; private logPolicyFailure; private logMessages; } //# sourceMappingURL=check.d.ts.map