import type { OrgDaemon } from './daemon.js'; import type { RunSummary } from './reporting.js'; import type { OrgDef } from './types.js'; export declare function orgMemoryNamespace(name: string, def: OrgDef): string; /** Store dir for org cross-run memory — inside the org root so the bridge's * path guard accepts it when the daemon runs from the project (the normal * case) and test roots stay isolated. */ export declare function orgMemoryDbPath(root: string): string; /** The memory bridge's traversal guard silently redirects out-of-tree paths * to the per-project default store. For an org rooted outside cwd (tests, * unusual daemon setups) that redirect would write into the WRONG project's * memory — verify the guard kept our path, and skip org memory otherwise. */ export declare function orgMemoryUsable(root: string): Promise; /** Namespace for a role's PRIVATE memories, inside the org memory DB. */ export declare function agentMemoryNamespace(name: string, def: OrgDef, role: string): string; /** org_remember implementation: a deliberate write to org-shared or * role-private memory (both in the org memory DB, split by namespace). */ export declare function rememberOrgMemory(root: string, name: string, def: OrgDef, role: string, content: string, scope: 'org' | 'agent', run: string): Promise; /** org_recall implementation: search the org's memory namespace via the * memory bridge (semantic when the local model is available, tokenized * keyword otherwise). Failures return a message, never throw into the tool. */ export declare function recallOrgMemory(daemon: OrgDaemon, name: string, def: OrgDef, query: string, role?: string): Promise<{ text: string; hits: number; }>; /** knowledge_search implementation for org agents: the user's Second Brain * (this project's documents + the personal global brain), merged with the * same project-first ranking every other surface uses. Failures return a * message, never throw into the tool call. */ export declare function searchProjectKnowledge(root: string, query: string): Promise<{ text: string; hits: number; }>; /** org_learn implementation: merge coordinator-extracted entities/relations/ * rules into the org's knowledge graph (LLM extraction happens inside the * agent's own subscription-auth SDK session — no separate LLM call here). */ export declare function learnOrgKnowledge(daemon: OrgDaemon, name: string, run: string, payload: { nodes?: unknown[]; edges?: unknown[]; rules?: unknown[]; }): Promise; /** Persist the run's outcome into cross-run org memory so org_recall (and * future runs) can find it by meaning, not just recency. Best-effort. */ export declare function storeRunMemory(daemon: OrgDaemon, name: string, def: OrgDef, run: string, summary: RunSummary): Promise; //# sourceMappingURL=org-memory.d.ts.map