import { type HygieneCommonOptions } from "../shared.js"; /** * `scai hygiene audit baseline ` task runners. * * Baseline files live at `.scai/audit-baseline-.json` and * record the set of audit findings that should be ignored by future * runs that pass `--baseline`. See `src/hygiene/baseline.ts` for the * file shape and fingerprinting rules. */ export type BaselineShowOptions = HygieneCommonOptions; export interface BaselineCreateOptions extends HygieneCommonOptions { /** Comma-separated audit names. Default: all. */ audits?: string[]; /** Replace existing entries instead of merging. Default false (merge). */ reset?: boolean; root?: string; limit?: number; includeSystem?: boolean; } export interface BaselineRemoveOptions extends HygieneCommonOptions { /** Audit name. */ audit: string; /** Fingerprint to remove (from `baseline show`). */ fingerprint: string; } export interface BaselineResetOptions extends HygieneCommonOptions { /** Audit name to reset. Default: all audits. */ audit?: string; } export interface BaselineAcceptOptions extends HygieneCommonOptions { /** Audit name the findings belong to (must match the audit that produced the envelope). */ audit?: string; /** Optional note recorded with every accepted entry. */ note?: string; /** * Read a `ScaiEnvelope` from stdin and add every finding in * `envelope.data` to the baseline. The only ingestion mode in v1 — * future shapes (e.g. `--all-current` to run the audit live and * accept everything) can layer on top of the same library * function. */ fromStdin?: boolean; } export declare const runBaselineShow: (options: BaselineShowOptions) => Promise; export declare const runBaselineCreate: (options: BaselineCreateOptions) => Promise; export declare const runBaselineRemove: (options: BaselineRemoveOptions) => Promise; export declare const runBaselineReset: (options: BaselineResetOptions) => Promise; /** * `scai hygiene audit baseline accept --audit --from-stdin` — read a * `ScaiEnvelope` from stdin (typically the output of an audit's * `--json` mode) and mark every finding in `envelope.data` as * accepted in the per-env baseline. * * Closes the agent-friendly loop the feedback agent called out: * baseline was underused because there was no fast way to say "yes, * everything I just saw is intentional." Pair with the canonical * envelope (every audit emits one) and you get a one-pipeline * answer: * * $ scai hygiene audit broken-links list --json \ * | scai hygiene audit baseline accept --audit broken-links --note "known debt" * * Skips fingerprints that are already in the baseline so the * pipeline is idempotent. */ export declare const runBaselineAccept: (options: BaselineAcceptOptions) => Promise;