/** Safe, format-neutral primitives for Monomind-managed configuration content. */ export interface SafeJsonResult { content: string; diagnostics: readonly string[]; } type MarkerComment = '#' | '//'; /** * Adds or replaces one managed marker block. Blocks for other artifacts and * platforms are deliberately left untouched. */ export declare function mergeManagedBlock(existing: string, marker: string, content: string, comment?: MarkerComment): string; /** Removes exactly one artifact/platform block, leaving all other content unchanged. */ export declare function removeManagedBlock(content: string, artifact: string, platform: string): string; /** Removes a block by its full marker for artifacts with qualified names. */ export declare function removeManagedMarker(content: string, marker: string): string; /** * SKILL.md requires YAML frontmatter to be its first bytes. Keep it outside * the managed marker and replace only Monomind's body block. A same-name file * may contain user guidance around the block; a different-name file is foreign * and is never overwritten by an adapter install. */ export declare function mergeSkillManagedBlock(existing: string, marker: string, rendered: string): SafeJsonResult; /** Merges a named JSON object entry, leaving malformed input unmodified. */ export declare function safeJsonMerge(content: string, path: readonly string[], entry: unknown): SafeJsonResult; /** Convenience form for callers that do not need malformed-input diagnostics. */ export declare function mergeNamedEntry(content: string, path: readonly string[], entry: unknown): string; /** Removes a named JSON object entry, leaving malformed input unmodified. */ export declare function safeJsonRemove(content: string, path: readonly string[], name: string): SafeJsonResult; /** Convenience form for callers that do not need malformed-input diagnostics. */ export declare function removeNamedEntry(content: string, path: readonly string[], name: string): string; export {}; //# sourceMappingURL=merge.d.ts.map