/** * Extracts the content between the first opening and last closing occurrence * of an XML-like tag in text. Case-insensitive tag matching. Opening tag may * include attributes (e.g. ``). Content is returned * unmodified except for leading/trailing whitespace trimming. * * Returns null if either the opening or closing tag is missing. */ export declare function tagExtract(text: string, tag: string): string | null; /** * Extracts content from all non-overlapping `...` pairs in order. * Each pair is matched greedily to its nearest closing tag. Content is trimmed. * Returns empty array if no complete pairs are found. */ export declare function tagExtractAll(text: string, tag: string): string[]; /** * Removes the matched tag block (first open to last close, inclusive) from text. * Returns the remaining text. If no complete tag block is found, returns text unchanged. */ export declare function tagStrip(text: string, tag: string): string; export declare function escapeRegExp(value: string): string; //# sourceMappingURL=tagExtract.d.ts.map