import type { ToolResult, RegisterProjectInput, UnregisterProjectInput, CrossRepoSearchInput } from '../types/index.js';
/**
 * Register a project path so it participates in cross-repo search.
 *
 * After persisting the entry, eagerly refresh `specCount` by reading the
 * project's `specs.json` via the cwd-tolerant store (which walks ancestor
 * directories when the cwd-relative file is missing). This unblocks downstream
 * tools that previously trusted the cached `specCount: 0` and reported the
 * project as empty even when 21 specs were on disk.
 */
export declare function handleRegisterProjectPath(input: RegisterProjectInput): Promise<ToolResult>;
/**
 * Remove a project path from the cross-repo registry.
 */
export declare function handleUnregisterProjectPath(input: UnregisterProjectInput): Promise<ToolResult>;
/**
 * List all registered projects with their spec counts.
 */
export declare function handleListRegisteredProjects(_input: Record<string, never>): Promise<ToolResult>;
/**
 * Search specs across all registered projects.
 * Projects that fail to load are counted but do not abort the search.
 */
export declare function handleSearchAllProjects(input: CrossRepoSearchInput): Promise<ToolResult>;
//# sourceMappingURL=cross-repo-search-handler.d.ts.map