export declare const SUPERBLOCKS_LIBRARY_PACKAGE = "@superblocksteam/library"; export declare const SUPERBLOCKS_SDK_API_PACKAGE = "@superblocksteam/sdk-api"; export declare const MANAGED_PACKAGE_DEPENDENCIES: readonly ["@superblocksteam/library", "@superblocksteam/sdk-api"]; export declare const PACKAGE_DEPENDENCY_FIELDS: readonly ["dependencies", "devDependencies", "peerDependencies", "optionalDependencies"]; export type PackageJsonSnapshot = { value: string; diagnostic: { sha256: string; bytes: number; }; }; export type PackageJsonSnapshotReadResult = { packageJson: unknown | null; snapshot: PackageJsonSnapshot | null; }; /** * pnpm 11+ reads install settings like `overrides` and which dependency build * scripts may run from pnpm-workspace.yaml instead of package.json, so a change * there changes what an install does. Its text is part of the snapshot while * pnpm is turned on; npm reads none of it. */ export declare function readPnpmWorkspace(cwd: string): Promise; export declare function packageJsonSnapshot(packageJson: unknown, pnpmWorkspace?: string | null): PackageJsonSnapshot; export declare function didPackageJsonSnapshotChange(before: PackageJsonSnapshot | null, after: PackageJsonSnapshot | null): boolean; /** * True when the install from `after` would change the managed platform * packages that `before` installed. A missing baseline is an initial install, * not an upgrade. */ export declare function didManagedPackagePinsChange(before: PackageJsonSnapshot | null, after: PackageJsonSnapshot | null): boolean; export declare function packageJsonSnapshotDiagnostic(snapshot: PackageJsonSnapshot | null): { present: boolean; sha256?: string; bytes?: number; }; export declare function readPackageJsonSnapshot(cwd: string): Promise; export declare function readPackageJsonSnapshotWithSource(cwd: string): Promise; export declare function restoreManagedPackageDependencies(cwd: string, warmPackageJson: unknown | null): Promise; //# sourceMappingURL=package-json-snapshot.d.mts.map