import { type OutputFormat } from "../../output-adapters.js"; import { type HygieneCommonOptions } from "../shared.js"; /** * Meta-command: run every (or a chosen subset) audit and emit a * consolidated report. * * Use cases: * - One-shot tenant health check for stakeholders. * - CI step: "fail if any audit finds new issues (vs. baseline)". * - Scheduled audit runs that pipe to Slack via `--output` + a * webhook in the CI script. * * Filter model: * - `--include broken-links,unused-media` runs only those audits. * - `--exclude-audit find-replace` runs everything except that * audit (rename to avoid clashing with the cross-cutting * `--exclude ` filter). * - Sensible defaults: `find-replace` is OFF by default in `audit * all` because it requires a `--pattern` flag. * * Baseline integration: * - `--baseline` causes each audit's findings to be filtered * through the per-env baseline file. The report distinguishes * `findings` (new) from `ignored` (baseline-matched). * - `--update-baseline` accepts every current finding as the new * baseline (use after a manual review). */ export interface AuditAllOptions extends HygieneCommonOptions { /** Comma-separated list of audit names to run. Default: all except find-replace. */ include?: string[]; /** Comma-separated list of audit names to skip. */ excludeAudit?: string[]; /** Apply the per-env baseline file to filter known findings. */ baseline?: boolean; /** * After running, replace the baseline file with the current finding * set. Useful for snapshotting an accepted state. Off by default. */ updateBaseline?: boolean; /** Path to write the output to. Default: stdout. */ output?: string; /** Output format. Defaults to `json` (also inferred from --output extension). */ format?: OutputFormat; /** Common per-audit defaults (passed to every sub-audit). */ root?: string; limit?: number; includeSystem?: boolean; index?: string; concurrency?: number; batchSize?: number; pageParallelism?: number; cache?: boolean; exclude?: string[]; since?: string; owner?: string; } export declare const auditNames: () => string[]; export declare const runAuditAll: (options: AuditAllOptions) => Promise;