import { type DepPath, type PkgIdWithPatchHash } from '@pnpm/types'; import { type LockfileResolution, type LockfileObject } from '@pnpm/lockfile.types'; export type DepsGraph = Record>; export interface DepsGraphNode { children: { [alias: string]: T; }; pkgIdWithPatchHash?: PkgIdWithPatchHash; resolution?: LockfileResolution; fullPkgId?: string; } export interface DepsStateCache { [depPath: string]: string; } export declare function calcDepState(depsGraph: DepsGraph, cache: DepsStateCache, depPath: string, opts: { patchFileHash?: string; includeDepGraphHash: boolean; }): string; export interface PkgMeta { depPath: DepPath; name: string; version: string; } export type PkgMetaIterator = IterableIterator; export interface HashedDepPath { pkgMeta: T; hash: string; } export declare function iterateHashedGraphNodes(graph: DepsGraph, pkgMetaIterator: PkgMetaIterator): IterableIterator>; export declare function lockfileToDepGraph(lockfile: LockfileObject): DepsGraph;