import { type CreateStoreControllerOptions } from '@pnpm/store.connection-manager'; import type { IgnoredBuilds, IncludedDependencies, ProjectManifest } from '@pnpm/types'; export interface ResolutionPolicyViolation { name: string; version: string; code: string; reason: string; } export interface InstallGlobalPackagesResult { ignoredBuilds: IgnoredBuilds | undefined; resolutionPolicyViolations: ResolutionPolicyViolation[]; /** * The version each direct dependency resolved to. Empty when the installer * reported no lockfile, which it only does for a mutation that resolved * nothing. */ resolvedVersions: Record; } export interface InstallGlobalPackagesOptions extends CreateStoreControllerOptions { bin: string; dir: string; global?: boolean; lockfileDir: string; lockfileOnly?: boolean; allowBuilds?: Record; include: IncludedDependencies; includeDirect?: IncludedDependencies; omitSummaryLog?: boolean; rootProjectManifest?: ProjectManifest; rootProjectManifestDir?: string; saveDev?: boolean; saveExact?: boolean; saveOptional?: boolean; savePeer?: boolean; savePrefix?: string; saveProd?: boolean; sharedWorkspaceLockfile?: boolean; workspaceDir?: string; handleResolutionPolicyViolations?: (violations: readonly ResolutionPolicyViolation[]) => Promise; } export declare function installGlobalPackages(opts: InstallGlobalPackagesOptions, params: string[]): Promise;