UNPKG

@builder.io/dev-tools

Version:

Builder.io Visual CMS Devtools

19 lines (18 loc) 908 B
import type { RepoMetrics } from "$/ai-utils"; import type { DevToolsSys } from "../types"; /** * Validate if a version string is an exact version (not a range or constraint). * Returns true only for exact versions like "18.0.0", "3.10", "1.21", "stable", "nightly". * Returns false for semver ranges like ">=18.0.0", "^18.0.0", "~18.0.0", "16.x", "*", etc. * * @param version - The version string to validate * @returns true if the version is exact, false otherwise */ export declare function isExactVersion(version: string | undefined): boolean; /** * Collect comprehensive repository metrics * @param sys - DevTools system interface * @param basePath - Absolute path to the repository root * @param rootPath - Relative path within the repository to analyze (default: "/" for entire repo) */ export declare function collectRepoMetrics(sys: DevToolsSys, basePath: string): Promise<RepoMetrics>;