import type { ConversationCache } from "../../conversation-cache"; import type { CacheMetadataRepository } from "../../db/repositories/cacheMetadata.repository"; import type { ConversationsRepository } from "../../db/repositories/conversations.repository"; import type { ProjectsRepository } from "../../db/repositories/projects.repository"; export interface RefreshConversationCacheDeps { cache: ConversationCache; projectsRepo: ProjectsRepository; conversationsRepo: ConversationsRepository; cacheMetadataRepo: CacheMetadataRepository; } export interface RefreshConversationCacheResult { projectsTouched: number; conversationsBackfilled: number; latestConversationId: string | null; } /** * After a scanner-driven cache rebuild has run, walk the cache to: * 1. Upsert one project row per unique canonical project_path. * 2. Backfill conversation_meta.project_id for any rows missing it. * 3. Update cache_metadata.last_conversation_id so subsequent freshness * checks can short-circuit. * * The scanner itself runs in `server.ts` today; this function picks up * after it has populated `conversation_meta`. */ export declare function refreshConversationCache(deps: RefreshConversationCacheDeps): RefreshConversationCacheResult; //# sourceMappingURL=refreshConversationCache.d.ts.map