import type { MemoryDoc } from '../memory-resolver.js'; import type { SubstrateDoc } from './schema.js'; type ListAllMemoryDocsFn = () => MemoryDoc[]; type ParseSubstrateDocFn = (doc: MemoryDoc) => SubstrateDoc | null; /** Called by canvas-doc-substrate.ts on every `session_start`. * Resets all cached values so the next access triggers a fresh scan. */ export declare function clearSessionCache(): void; /** The FULL corpus (listAllMemoryDocs()), INCLUDING node scope, scanned at * most once per session. `listFn` is injected by the caller to avoid * circular imports at module init. This is the single filesystem walk the * whole module performs — `cachedAllMemoryDocs` below derives its * node-excluded view from this result rather than re-scanning. Consumers * that need every referenceable doc (inline memory-reference inventory) call * this directly instead of `cachedAllMemoryDocs`. */ export declare function cachedAllMemoryDocsInclusive(listFn: ListAllMemoryDocsFn): MemoryDoc[]; /** allMemoryDocsInclusive mapped through parseSubstrateDoc + null-filtered, * INCLUDING node scope. */ export declare function cachedSubstrateDocsInclusive(listFn: ListAllMemoryDocsFn, parseFn: ParseSubstrateDocFn): SubstrateDoc[]; /** All memory docs (listAllMemoryDocs()), scanned once per session. * `listFn` is injected by the caller to avoid circular imports at module init. */ export declare function cachedAllMemoryDocs(listFn: ListAllMemoryDocsFn): MemoryDoc[]; /** allMemoryDocs mapped through parseSubstrateDoc + null-filtered. * Both render.ts and on-read.ts consume this. */ export declare function cachedSubstrateDocs(listFn: ListAllMemoryDocsFn, parseFn: ParseSubstrateDocFn): SubstrateDoc[]; export {};