export type AnchorEntry = { path: string; content: string; mtime?: number; }; export declare class AnchorStore { private cache; cacheRead(path: string, content: string, mtime?: number): void; get(path: string): AnchorEntry | undefined; /** * Require `anchor` to occur exactly once in the cached content for `path`. * Returns the matched span (the anchor itself) on success, or an error * reason when the cache is missing, the anchor is absent, or it is ambiguous. */ resolveAnchor(path: string, anchor: string): { oldString: string; } | { error: string; }; /** Replace the cached content for `path` (e.g. after a successful edit). */ update(path: string, content: string): void; invalidate(path: string): void; clear(): void; } export declare function anchorsEnabled(): boolean; /** Test-only: clear the boot latch so the next call re-reads the env. */ export declare function __resetAnchorsLatchForTesting(): void; //# sourceMappingURL=anchors.d.ts.map