import type { Command } from 'commander'; import type { BaselineSnapshot, BaselineDelta } from '../baseline/baseline.schema.js'; import { type GapAnalysis } from '../schemas/gap-analysis.schema.js'; /** * Read and validate a GapAnalysis from a report.json written by `qulib analyze`. * report.json is exactly a serialized GapAnalysis (see reporters/json-reporter.ts), * so we parse it through GapAnalysisSchema — fail loudly on a malformed/foreign file * rather than baselining garbage. */ export declare function loadGapAnalysisFromReport(reportPath: string, cwd?: string): Promise; export interface BaselineSaveOptions { url: string; fromReport?: string; label?: string; dir?: string; json?: boolean; } /** Render a saved snapshot as a short human line. */ export declare function formatSavedSnapshot(snap: BaselineSnapshot): string; /** * Core of `baseline save`, factored out so node:test can drive it without a process. * Either --from-report (deterministic, reads a real on-disk report.json) or a live * crawl of --url. --from-report is preferred for CI/agents that already ran analyze. */ export declare function runBaselineSave(options: BaselineSaveOptions, out?: (line: string) => void): Promise; export interface BaselineListOptions { url: string; dir?: string; json?: boolean; } /** Render a list of snapshots as a human table. */ export declare function formatBaselineList(url: string, snaps: BaselineSnapshot[]): string; /** Core of `baseline list`, factored out for direct testing. */ export declare function runBaselineList(options: BaselineListOptions, out?: (line: string) => void): Promise; export interface BaselineCompareOptions { /** Compare two explicit baseline ids. Takes precedence over --url. */ from?: string; to?: string; /** Or: compare the two most-recent baselines for this URL. */ url?: string; dir?: string; json?: boolean; } /** Render a delta as a human report. */ export declare function formatBaselineDelta(delta: BaselineDelta): string; /** * Core of `baseline compare`, factored out for direct testing. * Resolution order: * 1. --from and --to explicit ids → load both, compare. * 2. --url → take the two most-recent baselines (prior = older, current = newest). * Fails clearly when fewer than two baselines are available — never invents a delta. */ export declare function runBaselineCompare(options: BaselineCompareOptions, out?: (line: string) => void): Promise; export declare function registerBaselineCommand(program: Command): void; //# sourceMappingURL=baseline-run.d.ts.map