import type { BaselineEntry, BaselineFile, ScanResult } from '../config/types.js'; export declare const BASELINE_FILE = "dotenv-diff.baseline.json"; /** * Loads the baseline file from disk. Returns null if the file does not exist * or cannot be parsed into a valid shape. * @param cwd - Current working directory to resolve the baseline file from * @returns The parsed baseline file or null if not found/invalid */ export declare function loadBaselineFile(cwd: string): BaselineFile | null; /** * Writes a baseline file to disk and returns the absolute path it was written to. * @param cwd - Current working directory to resolve the baseline file from * @param entries - List of baseline entries to write * @returns Absolute file path of the written baseline file * @throws If writing the file fails (e.g. due to permissions or disk issues) */ export declare function writeBaselineFile(cwd: string, entries: BaselineEntry[]): Promise; /** * Converts a ScanResult into a deterministic list of baseline entries. * * Identifiers are chosen to be stable across runs — volatile fields like line * numbers and snippet text are excluded. Secrets are stored as a fingerprint * (SHA-256 truncated to 12 hex chars) of `file:snippet` so no secret value is * ever written to the baseline file. * @param scanResult The full scan result to convert into baseline entries * @returns A sorted list of baseline entries representing the scan result */ export declare function collectBaselineEntries(scanResult: ScanResult): BaselineEntry[]; /** * Returns a new ScanResult with every warning that is covered by a baseline * entry removed. The matching logic is the mirror image of * {@link collectBaselineEntries} so every entry written suppresses the * correct warning. * @param scanResult The full scan result to apply baseline filtering to * @param entries The list of baseline entries to apply * @returns A new ScanResult with baseline-covered warnings removed */ export declare function applyBaselineEntries(scanResult: ScanResult, entries: BaselineEntry[]): ScanResult; //# sourceMappingURL=scanBaseline.d.ts.map