import { Configuration } from './Configuration'; import { Workspace } from './Workspace'; import { IdentHash, LocatorHash } from './types'; import { Ident, Descriptor, Locator, Package } from './types'; export declare function makeIdent(scope: string | null, name: string): Ident; export declare function makeDescriptor(ident: Ident, range: string): Descriptor; export declare function makeLocator(ident: Ident, reference: string): Locator; export declare function convertToIdent(source: Descriptor | Locator | Package): Ident; export declare function convertDescriptorToLocator(descriptor: Descriptor): Locator; export declare function convertLocatorToDescriptor(locator: Locator): Descriptor; export declare function convertPackageToLocator(pkg: Package): Locator; export declare function renamePackage(pkg: Package, locator: Locator): { version: string | null; languageName: string; linkType: import("./types").LinkType; dependencies: Map; peerDependencies: Map; dependenciesMeta: Map>; peerDependenciesMeta: Map; bin: Map; locatorHash: LocatorHash; reference: string; identHash: IdentHash; scope: string | null; name: string; }; export declare function virtualizeDescriptor(descriptor: Descriptor, entropy: string): Descriptor; export declare function virtualizePackage(pkg: Package, entropy: string): Package; export declare function isVirtualDescriptor(descriptor: Descriptor): boolean; export declare function isVirtualLocator(locator: Locator): boolean; export declare function devirtualizeDescriptor(descriptor: Descriptor): Descriptor; export declare function devirtualizeLocator(locator: Locator): Locator; export declare function bindDescriptor(descriptor: Descriptor, params: { [key: string]: string; }): Descriptor; export declare function areIdentsEqual(a: Ident, b: Ident): boolean; export declare function areDescriptorsEqual(a: Descriptor, b: Descriptor): boolean; export declare function areLocatorsEqual(a: Locator, b: Locator): boolean; export declare function parseIdent(string: string): Ident; export declare function tryParseIdent(string: string): Ident | null; export declare function parseDescriptor(string: string, strict?: boolean): Descriptor; export declare function tryParseDescriptor(string: string, strict?: boolean): Descriptor | null; export declare function parseLocator(string: string, strict?: boolean): Locator; export declare function tryParseLocator(string: string, strict?: boolean): Locator | null; export declare function parseRange(range: string): { protocol: string | null; source: string | null; selector: string; }; export declare function makeRange({ protocol, source, selector }: { protocol: string | null; source: string | null; selector: string; }): string; export declare function requirableIdent(ident: Ident): string; export declare function stringifyIdent(ident: Ident): string; export declare function stringifyDescriptor(descriptor: Descriptor): string; export declare function stringifyLocator(locator: Locator): string; export declare function slugifyIdent(ident: Ident): string; export declare function slugifyLocator(locator: Locator): import("@yarnpkg/fslib").Filename; export declare function prettyIdent(configuration: Configuration, ident: Ident): string; export declare function prettyRange(configuration: Configuration, range: string): string; export declare function prettyDescriptor(configuration: Configuration, descriptor: Descriptor): string; export declare function prettyReference(configuration: Configuration, reference: string): string; export declare function prettyLocator(configuration: Configuration, locator: Locator): string; export declare function prettyLocatorNoColors(locator: Locator): string; export declare function sortDescriptors(descriptors: Iterable): Descriptor[]; export declare function prettyWorkspace(configuration: Configuration, workspace: Workspace): string;