import { FilePinStore, pinRevision } from './pin-store.js'; import { Warden } from './index.js'; import type { McpServerRef, ToolDef, WardenPolicy, WardenVerdict } from './types.js'; import type { ThreatFeed } from './threat-feed.js'; export interface Observation { server: McpServerRef; /** Absent when vetLaunch refused to start the new command. */ tools?: ToolDef[]; policy: WardenPolicy; revoked?: boolean; /** serverInfo from the initialize result, when the proxy recorded it: shown in a review, never trusted. */ serverInfo?: { name?: string; version?: string; }; } /** A bounded copy of the child's self-reported metadata, never an installed-artifact identity. */ export declare function observedServerInfo(value: unknown): Observation['serverInfo']; /** A refusal WARDEN decided, as opposed to a check that could not run (timeout, lock, child error). */ export declare class WardenBlock extends Error { } export declare function observationPath(dir: string, id: string): string; export declare function observationRevision(value: Observation | undefined): string; export declare function observe(dir: string, value: Observation): Promise; /** One lock spans TOFU's read/vet/approve, as well as human review's final CAS. */ export declare function vetAndPin(dir: string, server: McpServerRef, tools: ToolDef[], policy: WardenPolicy, store: FilePinStore, warden: Warden, feed: ThreatFeed, auditOnly: boolean, isCurrent: () => boolean, record: (v: WardenVerdict) => void, serverInfo?: Observation['serverInfo']): Promise; export declare function describeReview(previous: Awaited>, current: Observation | undefined): string; export { pinRevision }; //# sourceMappingURL=wrap-state.d.ts.map