/**
 * Nexus Prime — Bootstrap Registry
 *
 * Durable, file-backed storage for BootstrapReceipt.
 * Survives process restarts — the MCP adapter checks this instead of
 * depending solely on the ephemeral SessionTelemetry.bootstrapped flag.
 *
 * Stored as JSON in the workspace state directory:
 *   <stateRoot>/bootstrap-receipt.json
 */
import type { BootstrapReceipt, RepoIdentity } from './types.js';
/**
 * Write a bootstrap receipt to the workspace state directory.
 */
export declare function writeBootstrapReceipt(stateRoot: string, receipt: BootstrapReceipt): void;
/**
 * Read the bootstrap receipt, if it exists and is not stale.
 * Returns null if missing, corrupt, or older than MAX_RECEIPT_AGE_MS.
 */
export declare function readBootstrapReceipt(stateRoot: string): BootstrapReceipt | null;
/**
 * Check whether a valid (non-stale) bootstrap receipt exists.
 */
export declare function hasValidBootstrapReceipt(stateRoot: string): boolean;
/**
 * Remove the bootstrap receipt (e.g. on explicit session reset).
 */
export declare function clearBootstrapReceipt(stateRoot: string): void;
/**
 * Build a RepoIdentity from the current working directory.
 */
export declare function buildRepoIdentity(repoRoot: string): RepoIdentity;
/**
 * Check whether a receipt's repo identity is still current
 * (i.e. the repo root matches and HEAD hasn't changed drastically).
 */
export declare function isReceiptCurrent(receipt: BootstrapReceipt, currentRepoRoot: string): boolean;
