/** * Utility for replacing multiple parts in a large text source. */ export declare class TextReplacements { #private; constructor(content: string); /** * Append a replacement. * * Replacements must be appended in order and must not overlap. */ replace(update: TextReplacements.Replacement): this; /** * Get the formatted content with all replacements applied. */ format(): string; } export declare namespace TextReplacements { interface Replacement { /** * The inclusive start offset where to apply the replacement. */ start: number; /** * The exclusive end offset where to apply the replacement. */ end: number; /** * The text to replace with. */ text: string; } }