import type { SupportedArchitectures } from '@pnpm/types'; import { UnsupportedEngineError, type WantedEngine } from './checkEngine.js'; import { UnsupportedPlatformError } from './checkPlatform.js'; export type { Engine } from './checkEngine.js'; export type { Platform, WantedPlatform } from './checkPlatform.js'; export { inferPlatformFromPackageName } from './inferPlatformFromPackageName.js'; export { UnsupportedEngineError, UnsupportedPlatformError, type WantedEngine, }; export declare function packageIsInstallable(pkgId: string, pkg: { name: string; version: string; engines?: WantedEngine; cpu?: string[]; os?: string[]; libc?: string[]; }, options: { engineStrict?: boolean; nodeVersion?: string; optional: boolean; pnpmVersion?: string; lockfileDir: string; supportedArchitectures?: SupportedArchitectures; }): boolean | null; export declare function checkPackage(pkgId: string, manifest: { engines?: WantedEngine; cpu?: string[]; os?: string[]; libc?: string[]; }, options: { nodeVersion?: string; pnpmVersion?: string; supportedArchitectures?: SupportedArchitectures; }): null | UnsupportedEngineError | UnsupportedPlatformError;