import { PnpmWorkspaceArgs } from '../../types'; import { NormalisedPnpmPkg, NormalisedPnpmPkgs, ParsedDepPath, PnpmDepPath, PnpmDeps, PnpmImporters, PnpmLockPkg } from '../types'; export declare abstract class PnpmLockfileParser { lockFileVersion: string; rawPnpmLock: any; packages: Record; extractedPackages: NormalisedPnpmPkgs; importers: PnpmImporters; workspaceArgs?: PnpmWorkspaceArgs; resolvedPackages: Record; constructor(rawPnpmLock: any, workspaceArgs?: PnpmWorkspaceArgs); isWorkspaceLockfile(): boolean | undefined; extractPackages(): NormalisedPnpmPkgs; extractTopLevelDependencies(options: { includeDevDeps: boolean; includeOptionalDeps?: boolean; includePeerDeps?: boolean; }, importer?: string): PnpmDeps; normalizedPkgToTopLevel(pkg: NormalisedPnpmPkg): PnpmDeps; topLevelDepsToNormalizedPkgs(deps: PnpmDeps): Record; normalizeVersion(name: string, version: string, isDev: boolean, importerName?: string): string; resolveWorkspacesCrossReference(name: string, version: string, isDev: boolean, importerName?: string): string; abstract normalizePackagesDeps(dependencies: any, isDev: any, importerName?: any): Record; abstract normalizeTopLevelDeps(dependencies: any, isDev: any, importerName?: any): PnpmDeps; abstract parseDepPath(depPath: string): ParsedDepPath; abstract excludeTransPeerDepsVersions(fullVersionStr: string): string; abstract normaliseImporters(rawPnpmLock: any): PnpmImporters; }