import type { ArtifactMetadataManifest, GitHistoryBaseline } from "../types/artifactMetadata.js"; import type { FileDisposition } from "audit-tools/shared"; import type { RepoManifest } from "../types.js"; /** * Content key of the in-scope audited path set the git-history mine is filtered * to. Sorted so manifest ordering noise never moves the key; single-sourced off * `gitHistoryInScopeKeys` so it can never disagree with the actual filter. */ export declare function deriveGitHistoryScopeKey(repoManifest: RepoManifest, disposition?: FileDisposition): string; /** Read the carried-forward git-history baseline off the artifact metadata. */ export declare function readGitHistoryBaseline(metadata: ArtifactMetadataManifest | undefined): GitHistoryBaseline | undefined; /** * Carry a freshly-recorded git-history baseline onto the bundle's artifact * metadata so `computeArtifactMetadata` persists it (the same carry-forward path * `result_baselines` / `coverage_element_baselines` use). Returns a new manifest; * never mutates the input. Stamps the F1 schema version when seeding a fresh * manifest so the CE-007 freshness gate recognizes the store on the next run. */ export declare function withGitHistoryBaseline(metadata: ArtifactMetadataManifest | undefined, baseline: GitHistoryBaseline): ArtifactMetadataManifest; /** * Decide whether the prior git-history mine can be reused. Reuse iff a prior * `git_history` artifact exists, a prior baseline exists, and BOTH the live HEAD * and scope key equal that baseline. Returns the head/scope_key computed for this * run so the caller can record a refreshed baseline when it re-mines. A `null` * `head` (git unavailable) is never reusable and yields no baseline to record. */ export declare function canReuseGitHistory(params: { head: string | null; scopeKey: string; priorBaseline: GitHistoryBaseline | undefined; hasPriorArtifact: boolean; }): boolean; //# sourceMappingURL=gitHistoryBaseline.d.ts.map