/** * Interface representing version information across different files */ interface VersionInfo { packageJson: string; serverJson: string; changelog?: string; } /** * Interface for validation results */ interface ValidationResult { isValid: boolean; errors: string[]; warnings: string[]; } /** * Interface for version synchronization options */ export interface SyncOptions { dryRun?: boolean; validateSchema?: boolean; updateChangelog?: boolean; } /** * Validates if a version string follows semantic versioning (SemVer) format. * @param version - The version string to validate. * @returns True if the version is valid SemVer, false otherwise. */ export declare function isValidSemVer(version: string): boolean; /** * Retrieves version information from all relevant files. * @param rootPath - The root path of the project (defaults to current working directory). * @returns Promise resolving to version information from all files. */ export declare function getVersionInfo(rootPath?: string): Promise; /** * Validates version consistency across all files and SemVer compliance. * @param rootPath - The root path of the project (defaults to current working directory). * @returns Promise resolving to validation results. */ export declare function validateVersionConsistency(rootPath?: string): Promise; /** * Validates server.json against the official MCP schema. * @param rootPath - The root path of the project. * @returns Promise resolving to validation results. */ export declare function validateServerJsonSchema(rootPath?: string): Promise; /** * Synchronizes version across all files (package.json, server.json, CHANGELOG.md). * @param newVersion - The new version to set across all files. * @param rootPath - The root path of the project (defaults to current working directory). * @param options - Synchronization options. * @returns Promise resolving to validation results after synchronization. */ export declare function synchronizeVersion(newVersion: string, rootPath?: string, options?: SyncOptions): Promise; /** * Gets the current version from package.json. * @param rootPath - The root path of the project (defaults to current working directory). * @returns Promise resolving to the current version string. */ export declare function getCurrentVersion(rootPath?: string): Promise; export {};