import { PnpmError } from '@pnpm/error'; import type { SupportedArchitectures } from '@pnpm/types'; export declare class UnsupportedPlatformError extends PnpmError { wanted: WantedPlatform; current: Platform; constructor(packageId: string, wanted: WantedPlatform, current: Platform); } export declare function checkPlatform(packageId: string, wantedPlatform: WantedPlatform, supportedArchitectures?: SupportedArchitectures): UnsupportedPlatformError | null; export interface Platform { cpu: string | string[]; os: string | string[]; libc: string | string[]; } export type WantedPlatform = Partial;