/** * Utilities for detecting AMPscript and GTL region boundaries within a document. */ /** * Returns true when the given character offset falls inside an AMPscript * region: a %%[...]%% block, a %%=...=%% inline expression, or a * tag body. * @param text - Full document text. * @param offset - Character offset to test. * @returns True if the offset is inside an AMPscript region. */ export declare function isInsideAmpscript(text: string, offset: number): boolean; /** * Returns true when the given character offset falls inside a GTL {{...}} expression. * @param text - Full document text. * @param offset - Character offset to test. * @returns True if the offset is inside a GTL expression. */ export declare function isInsideGtl(text: string, offset: number): boolean; /** * Returns true when the given character offset falls inside a Handlebars {{...}} * expression (Handlebars for Marketing Cloud Next). The syntax is identical to * GTL, but the two are mutually exclusive: GTL is detected only in Engagement * mode, Handlebars only in MCN Next mode. * @param text - Full document text. * @param offset - Character offset to test. * @returns True if the offset is inside a Handlebars expression. */ export declare function isInsideHandlebars(text: string, offset: number): boolean; /** * Returns a copy of the document where every AMPscript region (%%[...]%%, * %%=...=%%, and