export interface ManagedBlock { beginLineIndex: number; endLineIndex: number; innerText: string; beginLine: string; endLine: string; } export declare function findManagedBlock(text: string, blockId: string): ManagedBlock | null; export interface TemplateBlock { blockChunk: string; innerText: string; } export declare function extractTemplateBlock(templateText: string, blockId: string): TemplateBlock; export interface UpsertManagedBlockOptions { insertIfMissing: boolean; templateBlockChunk?: string; } export interface UpsertManagedBlockResult { nextText: string; changed: boolean; inserted: boolean; } export declare function upsertManagedBlock(targetText: string, blockId: string, newInnerText: string, options: UpsertManagedBlockOptions): UpsertManagedBlockResult; export declare function hashManagedBlockInner(text: string, blockId: string): string;