/** * Shared text-processing utilities for Gradle DSL parsers. * Used by settings-catalogs-parser.ts and plugins-block-parser.ts. */ /** * Strips single-line (`//`) and block (`/* ... *\/`) comments from Gradle DSL content. */ export declare function stripComments(content: string): string; /** * Finds the brace-balanced block following `keyword` in `content`, searching from `fromIdx`. * Returns `{ inner, end }` where `inner` is the content between `{` and its matching `}`, * and `end` is the index just past the closing `}`. Returns null if not found or unbalanced. */ export declare function findFirstBlock(content: string, keyword: string, fromIdx?: number): { inner: string; end: number; } | null; /** * Extracts the inner content of the first brace-balanced block following `keyword`. * Returns null if not found or unbalanced. */ export declare function extractBlock(content: string, keyword: string): string | null; /** * Extracts the first brace-balanced block starting at position `fromIdx` in `content` * (i.e. searches for the opening `{` from that position without requiring a keyword match). * Returns null if not found or unbalanced. */ export declare function extractBlockAt(content: string, fromIdx: number): string | null; /** * Finds all occurrences of `keyword` in `content` and returns the inner content * of the brace-balanced block following each occurrence. */ export declare function findAllBlocks(content: string, keyword: string): string[];