import { type WorkspaceType } from "../workspace/index.js"; import { type NextjsPackage } from "../workspace/index.js"; export interface NextjsVersionResult { version: string | null; error?: string; /** Set when version was found in workspace packages */ fromWorkspace?: { type: WorkspaceType; packageCount: number; packages: NextjsPackage[]; }; } /** * Read the Next.js version from the project's package.json. * Falls back to searching workspace packages if not found at root. */ export declare function getNextjsVersion(cwd: string): NextjsVersionResult;