import type { AppContext } from "./types/interfaces.js"; export declare function createServices(projectRoot?: string): Promise; export interface WorkspaceEmbedPlan { freshBuild: boolean; staleIds: string[]; vectorCount: number; } /** * Initialize all workspaces: load/build AST index, vector DB, type graph, call graph. * Returns per-workspace embed metadata for backgroundEmbed(). * Shared between MCP server (index.ts) and test harness. */ export declare function initializeWorkspaces(ctx: AppContext, opts?: { refreshStale?: boolean; }): Promise>; /** * Background embedding: check Ollama, then embed based on the plan from * initializeWorkspaces. Sets ctx.embeddingAvailable as a side effect. * Fire-and-forget after server.connect(). */ export declare function backgroundEmbed(ctx: AppContext, plans: Map): Promise; /** * In a git worktree with no cache, copy the main repo's .code-context/ * for a fast warm start. Worktree is fully isolated after the copy. */ export declare function seedCacheFromMainRepo(projectRoot: string): Promise; //# sourceMappingURL=services.d.ts.map