/** Marker opening Lisa's bounded host-rules pointer block. */
export declare const LISA_HOST_RULES_START_MARKER = "<!-- LISA_HOST_RULES_START -->";
/** Marker closing Lisa's bounded host-rules pointer block. */
export declare const LISA_HOST_RULES_END_MARKER = "<!-- LISA_HOST_RULES_END -->";
/**
 * Add, replace, or remove one bounded Lisa-managed block in an instruction
 * file, leaving every byte outside the markers untouched.
 *
 * Malformed markers are a hard no-op — only one of the pair present, the end
 * before the start, or either marker occurring more than once — because Lisa
 * must never guess which host bytes belong to it.
 * @param body - Existing instruction-file body.
 * @param startMarker - Opening marker for the managed block.
 * @param endMarker - Closing marker for the managed block.
 * @param replacement - Full replacement block, or empty string to remove.
 * @returns Updated body, or the original body for malformed markers.
 */
export declare function replaceManagedBlock(body: string, startMarker: string, endMarker: string, replacement: string): string;
/**
 * Build the exact bounded host-rules pointer block.
 * @param legacyRulesFile - Project-relative path to a surviving legacy
 *   single-file rules document, when one exists. Omit when none does.
 * @returns Managed pointer block with surrounding markers.
 */
export declare function buildHostRulesPointer(legacyRulesFile?: string): string;
/**
 * Remove the managed host-rules pointer from an AGENTS.md body. Malformed
 * marker pairs are left unchanged.
 * @param body - Existing `AGENTS.md` contents.
 * @returns The body with the managed pointer removed, when a full block exists.
 */
export declare function stripHostRulesPointer(body: string): string;
//# sourceMappingURL=host-rules-pointer.d.ts.map