import { type AgentRegistry, type AgentRoot, type AgentRootOptions } from './registry-builder.js'; /** * The nearest directory at or above `cwd` holding `.claude/agents` or * `.monomind`. The walk stops at the git root (inclusive) and never looks at * the home directory itself, whose `~/.monomind` is the user's global state, * not a project. Null when no project is found. */ export declare function findProjectRoot(cwd: string, home?: string): string | null; /** Newest mtime (ms) of any agent `.md` under `roots` (directories count too, * so a deleted file also marks the registry stale). 0 when there are none. */ export declare function newestAgentMtime(roots: (string | AgentRoot)[]): number; export declare const registryPath: (root: string) => string; /** True when `root`'s registry is missing or older than an agent definition. */ export declare function registryIsStale(root: string, opts?: AgentRootOptions): boolean; /** * Rebuilds `root`'s registry when stale, synchronously, so a caller that reads * it next (`monomind pick`, MCP pick) never races a fire-and-forget build. * Returns the built registry, or null when it was already fresh. Never throws. */ export declare function ensureRegistry(root: string, opts?: AgentRootOptions): AgentRegistry | null; //# sourceMappingURL=registry-freshness.d.ts.map