export interface ParsedPluginDeclaration { pluginId: string; version: string | null; /** Full dotted path from alias(...), e.g. "libs.plugins.foo" or "testLibs.plugins.x". */ catalogRef?: string; settingsBlock?: boolean; } export interface ParsedClasspathDep { groupId: string; artifactId: string; version: string | null; } /** * Parses `plugins { ... }` blocks in build.gradle / build.gradle.kts content. * * When `opts.settings` is true, parses only `pluginManagement { plugins { ... } }` blocks * and sets `settingsBlock: true` on each result. * When false/absent, parses only top-level `plugins { ... }` blocks. * * For `alias(libs.plugins.foo)` declarations, `catalogRef` contains the full dotted path * (e.g. "libs.plugins.foo" or "testLibs.plugins.x"). The caller is responsible for * splitting on the first segment to identify the catalog name. */ export declare function parsePluginsBlock(content: string, opts?: { settings?: boolean; }): ParsedPluginDeclaration[]; /** * Parses `buildscript { dependencies { classpath(...) } }` blocks. * * Supports: * - Kotlin DSL: `classpath("g:a:v")` * - Groovy DSL: `classpath 'g:a:v'` * - `classpath("g:a") { version { strictly("v") } }` — version set to null (conservative) * * Ignores non-classpath configurations and classpath declarations outside buildscript blocks. */ export declare function parseBuildscriptClasspath(content: string): ParsedClasspathDep[];