/** * Bundle ID utilities */ import { type ProductId } from '../constants.js'; /** * Compare two version strings. Returns positive if a > b, negative if a < b, 0 if equal. * "current" is always treated as the maximum value. */ export declare function compareVersions(a: string, b: string): number; /** * Extract version number from a bundle_id (2-part or 3-part). * e.g., "jamf-pro-documentation-11.25.0" -> "11.25.0" * "jamf-school-documentation-2.45" -> "2.45" */ export declare function extractVersionFromBundleId(bundleId: string): string | null; /** * Return the bundleId with its version suffix removed. * e.g., "jamf-pro-documentation-11.25.0" -> "jamf-pro-documentation" * "jamf-pro-documentation" -> "jamf-pro-documentation" */ export declare function stripVersionSuffix(bundleId: string): string; /** * Strip the "-current" suffix from a bundle identifier. * e.g., "jamf-pro-documentation-current" -> "jamf-pro-documentation" * "jamf-pro-documentation" -> "jamf-pro-documentation" */ export declare function stripCurrentSuffix(s: string): string; /** * Extract product slug from any bundle_id format. * Matches against known product IDs so it works for documentation, release-notes, etc. * * e.g., "jamf-pro-documentation" -> "jamf-pro" * "jamf-pro-release-notes-11.25.0" -> "jamf-pro" * "jamf-protect-documentation" -> "jamf-protect" * "jamf-app-catalog" -> "jamf-app-catalog" */ export declare function extractProductSlug(bundleId: string): ProductId | null; //# sourceMappingURL=bundle.d.ts.map