import type { DepPath, PkgId, PkgIdWithPatchHash, PkgResolutionId, Registries } from '@pnpm/types'; export declare function isAbsolute(dependencyPath: string): boolean; export declare function indexOfDepPathSuffix(depPath: string): { peersIndex: number; patchHashIndex: number; }; export interface ParsedDepPath { id: string; peerDepGraphHash: string; } export declare function parseDepPath(relDepPath: string): ParsedDepPath; export declare function removeSuffix(relDepPath: string): string; export declare function removePeersSuffix(relDepPath: string): string; export declare function getPkgIdWithPatchHash(depPath: DepPath): PkgIdWithPatchHash; export declare function tryGetPackageId(relDepPath: DepPath): PkgId; export declare function getRegistryByPackageName(registries: Registries, packageName: string): string; export declare function refToRelative(reference: string, pkgName: string): DepPath | null; export interface DependencyPath { name?: string; peerDepGraphHash?: string; version?: string; nonSemverVersion?: PkgResolutionId; patchHash?: string; } export declare function parse(dependencyPath: string): DependencyPath; export declare function depPathToFilename(depPath: string, maxLengthWithoutHash: number): string; export type PeerId = { name: string; version: string; } | string; export declare function createPeerDepGraphHash(peerIds: PeerId[], maxLength?: number): string; export declare function isRuntimeDepPath(depPath: DepPath): boolean;