interface PackageJson { dependencies?: { next?: string; [key: string]: string | undefined; }; devDependencies?: { next?: string; [key: string]: string | undefined; }; } interface VersionResult { version: string; majorVersion: number; isNextjs15OrHigher: boolean; error?: string; } /** * Gets the Next.js major version from package.json * @param projectPath - Path to the project root directory * @returns Promise containing version information and status */ declare function getNextjsVersion(projectPath?: string): Promise; export { getNextjsVersion, VersionResult, PackageJson }; export declare function checkNextVersion(): Promise;