/** * Context Storage * Read/write .ralph/.context.json for persisted project analysis */ import type { PersistedContext } from './types.js'; export declare const CONTEXT_VERSION = 1; /** * Save context to .ralph/.context.json * * Ensures .ralph directory exists. Stamps version automatically. * Throws on filesystem errors. */ export declare function saveContext(context: Omit, projectRoot?: string): Promise; /** * Load context from .ralph/.context.json * * Returns null if file does not exist. * Throws if file exists but contains invalid JSON or fails validation. */ export declare function loadContext(projectRoot?: string): Promise; /** * Calculate the age of a persisted context */ export declare function getContextAge(context: PersistedContext): { ms: number; human: string; };