/** Every blocking assert a car's visual QA must have PASSED on today's route. A record without one never ran that gate. */ export declare const CURRENT_VEHICLE_GATES: readonly string[]; interface RunRow { id?: string; verdict?: string; createdAt?: string; packageVersionId?: string | null; bundle?: { item?: { packageVersion?: string | null; }; asserts?: Array<{ id: string; pass: boolean; severity?: string; }>; harness?: { version?: string; }; }; } interface VqaStatus { currentVersion?: { packageVersionId?: string | null; passed?: boolean; runId?: string | null; } | null; runs?: RunRow[]; } export interface RecordJudgement { itemId: string; title: string; version: string | null; record: { runId: string | null; createdAt: string | null; harness: string | null; verdict: string | null; } | null; /** current gates the passing record never ran */ stale: string[]; /** current gates the record ran and failed (blocking) */ failed: string[]; status: 'current' | 'stale' | 'fail' | 'no-record'; } /** Judge one item's visual-QA status against the current gate list. Pure. */ export declare function judgeRecord(itemId: string, title: string, version: string | null, st: VqaStatus, gates?: readonly string[]): RecordJudgement; export interface RecheckRow extends RecordJudgement { /** --rerun: today's render of the car (vehicle preview --item), its verdict and the failing blocking asserts. */ rerun?: { verdict: string; exitCode: number; failing: Array<{ id: string; detail: string; }>; inspection: string | null; out: string; error?: string; } | null; } /** The listed vehicles: the marketplace catalogue's vehicle items (optionally one creator's). */ export declare function listedVehicles(apiBase: string, creatorId?: string): Promise>; export interface RecheckOptions { apiBase: string; webBase: string; items?: string[]; creatorId?: string; rerun?: boolean; out: string; token?: string | null; storageState?: string; chrome?: string; log?: (m: string) => void; } export declare function recheckListed(o: RecheckOptions): Promise; export declare function renderRecheckText(rows: RecheckRow[]): string; /** * The listing ADVICE for a VEHICLE (never a gate): judges its current version's visual-QA record against today's checks so * the CLI can print notes before a Claim/Buy route is created. Returns null for an item that is not a vehicle. */ export declare function vehicleListingGate(apiBase: string, itemId: string): Promise; /** Advice printed when a vehicle is listed on a visual-QA record that is missing, stale or failed. Never a refusal. */ export declare function listingAdvisory(j: RecordJudgement): string; export {};