/**
 * Package Integrity Verification
 * Verifies npm package integrity before updates
 */
/**
 * Get package integrity hash from npm registry
 */
export declare function getPackageIntegrity(packageName: string, version: string): string | null;
/**
 * Verify package tarball integrity
 */
export declare function verifyPackageIntegrity(tarballPath: string, expectedIntegrity: string): boolean;
/**
 * Verify installed package version matches expected
 */
export declare function verifyInstalledVersion(packageName: string, expectedVersion: string): boolean;
/**
 * Safe global npm install (no `--integrity` flag: npm 10+ rejects it as a CLI config; tarball is still verified on fetch).
 * On Windows, npm is invoked via `node .../npm-cli.js` (see npm-spawn.ts) so spawn does not rely on .cmd.
 * When version is 'latest', installs whatever the registry tags as latest (avoids ETARGET for unpublished versions).
 */
export declare function safeNpmInstall(packageName: string, version: string): {
    success: boolean;
    error?: string;
};
//# sourceMappingURL=package-integrity.d.ts.map