import type { ArtifactBundle } from "../io/artifacts.js"; import type { ExecutorRunResult } from "./executorResult.js"; import { type AnalyzerConsentDecisions } from "audit-tools/shared"; /** * The eslint argv for the installed major. `--ext` was removed in ESLint 9 and is * a hard "unrecognized option" there, which kills the whole JSON run and lands it * on `parse_error` — i.e. lint extraction failed on every flat-config repo, * including this one (COR-743d2837). */ export declare function eslintCommandArgs(major: number | undefined): string[]; export interface EslintConfigState { /** True only when a config the INSTALLED eslint actually reads is present. */ runnable: boolean; /** Why no run is possible. Always set, and non-empty, when `runnable` is false. */ skip_reason?: string; /** The repo-local eslint major, when one is installed. */ major?: number; } /** * Decide whether eslint can produce coverage for this repo, era-aware. * * A legacy `.eslintrc*` (or an inline `package.json#eslintConfig`) is a config * file, but under ESLint 9+ it is one nothing reads — treating its presence as * "lint is runnable" invokes a tool that cannot possibly report findings, which * is the success-shaped-empty failure this contract forbids. The skip carries a * reason so "no config at all" and "config the installed eslint ignores" are * distinguishable at the status record, never both silently zero findings. */ export declare function resolveEslintConfigState(root: string): EslintConfigState; export interface SyntaxResolutionExecutorOptions { /** * Recorded consent decisions (from the durable analyzer policy). A recorded * `declined` for `tsc` or `eslint` vetoes that spawn at the shared * admitLocalSpawn chokepoint — the same decline-first rule every other local * tooling spawn faces. */ analyzerConsent?: AnalyzerConsentDecisions; } export declare function runSyntaxResolutionExecutor(bundle: ArtifactBundle, root: string, options?: SyntaxResolutionExecutorOptions): ExecutorRunResult; //# sourceMappingURL=syntaxResolutionExecutor.d.ts.map