interface PartialRefValues { name: string; version?: string; preset?: string; } /** * Used to format any reference to a cannon package and split it into it's core parts */ export declare class PackageReference { static DEFAULT_TAG: string; static DEFAULT_PRESET: string; static PACKAGE_REGEX: RegExp; static VARIANT_REGEX: RegExp; /** * Anything before the colon or an @ (if no version is present) is the package name. */ name: string; /** * Anything between the colon and the @ is the package version. * Defaults to 'latest' if not specified in reference */ version: string; /** * Anything after the @ is the package preset. */ preset: string; /** * Convenience parameter for returning packageRef with interpolated version and preset like name:version@preset */ get fullPackageRef(): string; get packageRef(): string; /** * Parse package reference without normalizing it */ static parse(ref: string): PartialRefValues; static isValid(ref: string): boolean; static from(name: string, version?: string, preset?: string): PackageReference; /** * Parse variant string into chainId and preset * @param variant string * @returns chainId and preset */ static parseVariant(variant: string): [number, string]; constructor(ref: string); } export {}; //# sourceMappingURL=package-reference.d.ts.map