export interface CursorSettingsWriteResult { written: boolean; mdcPath: string; diagnostic?: { code: "write-error"; message: string; }; } /** * Pure: returns the MDC body text that goes inside the managed block. */ export declare function buildOrchestraHealthMdcBody(): string; /** * Pure: given existing MDC file content (may be empty), returns new file * content with frontmatter applied and the managed block upserted. * Preserves any non-Orchestra content outside the managed block. */ export declare function mergeOrchestraHealthMdc(existing: string, version: string): string; /** * Writes or updates `.cursor/rules/orchestra-health.mdc`. * Creates `.cursor/rules/` if it does not exist. * Idempotent: repeated calls produce identical output. * Fails open: errors are caught and returned as a diagnostic, not thrown. */ export declare function initCursorSettings(root: string): Promise;