/** * baseline-seams — the host implementations behind the four `ToolCliContext` * baseline/ratchet seams (ADR-0036): `saveBaseline`, `compareBaseline`, * `exportBaselineSarif`, `exportBaselineFingerprints`. * * The host owns persistence (`BaselineRepo`), the pure diff (`diffBaseline` from * `@opensip-cli/output`), SARIF re-render, and the git-trackable JSON export. * The seams are **read-only** of `signal.fingerprint`: the tool stamps its * envelope's signals (`stampFingerprints`) at envelope-construction time and the * plane NEVER re-fingerprints. Factored out of `cli-context.ts` to keep that * file within its size budget. */ import { type GateCompareResult, type Logger } from '@opensip-cli/core'; import { type DataStore } from '@opensip-cli/datastore'; /** The four host baseline/ratchet seam implementations, bound to a datastore resolver. */ export interface BaselineSeams { readonly saveBaseline: (tool: string, envelope: unknown) => Promise; readonly compareBaseline: (tool: string, envelope: unknown) => Promise; readonly exportBaselineSarif: (tool: string, path: string) => Promise; readonly exportBaselineFingerprints: (tool: string, path: string) => Promise; } /** * Build the four baseline seams over a lazy datastore resolver. `getDatastore` * throws when accessed outside a project scope (the host's existing contract). */ export declare function buildBaselineSeams(deps: { readonly getDatastore: () => DataStore; readonly logger: Logger; }): BaselineSeams; //# sourceMappingURL=baseline-seams.d.ts.map