/** * Shared helper for adapters that append/update a managed markdown block in * a single file at the project root (CLAUDE.md, AGENTS.md, .cursorrules, * .clinerules). Centralises the read/upsert/write logic so each adapter is * just a one-liner. */ /** * True when `fileName` (relative to `root`) exists and contains an OpenLore-managed * markdown block. Preset-insensitive presence check used by `connect list`. */ export declare function hasManagedBlock(root: string, fileName: string): Promise; import type { ApplyContext, ApplyResult } from './types.js'; export interface MarkdownBlockOptions { /** File name, relative to ctx.root. */ fileName: string; /** Whether the file should be created if it doesn't yet exist. */ createIfMissing: boolean; /** Optional adapter-specific prefix added above the template (e.g. heading). */ blockBody: string; } export declare function applyMarkdownBlock(ctx: ApplyContext, opts: MarkdownBlockOptions): Promise; export declare function uninstallMarkdownBlock(ctx: ApplyContext, fileName: string, /** If true, delete the file when removing the block empties it. */ deleteIfBlockOnly: boolean): Promise; //# sourceMappingURL=markdown-block.d.ts.map