import { Tree } from '@nx/devkit';
/**
 * Adds a `build.gradle(.kts)` file next to each `settings.gradle(.kts)` file found in the workspace.
 * If the build.gradle file already exists, it reads its contents.
 */
export declare function addBuildGradleFileNextToSettingsGradle(tree: Tree): Promise<{
    filePath: string;
    content: string;
}[]>;
/**
 * Extract gradle plugin version from build.gradle file
 */
export declare function extractNxPluginVersion(gradleFilePath: string, gradleContent: string): Promise<string | null>;
/**
 * Updates the plugin version in the given Gradle file content.
 */
export declare function updateNxPluginVersion(content: string, newVersion: string): string;
/**
 * Ensures all build.gradle(.kts) files use the expected version of dev.nx.gradle.project-graph.
 */
export declare function addNxProjectGraphPlugin(tree: Tree, expectedVersion?: string): Promise<void>;
//# sourceMappingURL=gradle-project-graph-plugin-utils.d.ts.map