export type BumpType = 'major' | 'minor' | 'patch'; export interface IParsedVersion { major: number; minor: number; patch: number; prerelease: string; } export interface IBumpResult { status: 'ok'; bumpType: BumpType; oldVersion: string; newVersion: string; file: string; } export interface IVersionService { /** * Find package.json starting from a directory. */ findPackageJson(startDir?: string): string | null; /** * Parse a semver version string. */ parseVersion(version: string): IParsedVersion; /** * Bump a version string. */ bumpVersion(version: string, type: BumpType): string; /** * Validate bump type argument. */ validateBumpType(arg: string): BumpType; /** * Execute the version bump. */ bump(bumpType: BumpType, startDir?: string): IBumpResult; } /** * Creates a version service instance. */ export declare function createVersionService(): IVersionService; //# sourceMappingURL=VersionService.d.ts.map