import { type CortexMDEntry } from '../../memory/cortex-md-injector.js'; export { type CortexMDEntry }; /** Build text content blocks for the CORTEX.md chain returned by cortex-client. * Dedup by (device:path) mtime via CortexMDInjector — each CORTEX.md is injected * at most once per MCP process, and the cache is disk-backed so restarts * don't re-flood the agent with the same instructions. * * If `targetFilePath` is supplied and equals one of the chain entries (i.e. the * tool is reading/writing/editing a CORTEX.md itself), that entry is marked as * seen in the cache but its block is suppressed — the agent already receives * the content as the primary tool response, so re-injecting would just double * it. Subsequent reads of sibling files in the same dir will then hit the * cache and also skip, matching the normal dedup behavior. */ export declare function cortexMDContentBlocks(device: string, entries: CortexMDEntry[] | undefined, targetFilePath?: string): Array<{ type: 'text'; text: string; }>;