import type { PluginMap } from './config.js'; type Primitive = null | undefined | string | number | boolean | symbol | bigint; type LiteralUnion = LiteralType | (BaseType & Record); type Dependencies = Record; type C = 'import' | 'require' | 'node' | 'node-addons' | 'deno' | 'browser' | 'electron' | 'react-native' | 'default'; type ExportCondition = LiteralUnion; type Exports = null | string | string[] | { [key in ExportCondition]: Exports; } | { [key: string]: Exports; }; type PackageJsonPath = T extends { packageJsonPath: infer P; } ? (P extends string ? P : never) : never; type WithPackageJsonPathAsKey = { [K in keyof T]: PackageJsonPath extends never ? K : PackageJsonPath; }; type PluginConfig

= { [K in keyof P as WithPackageJsonPathAsKey

[K]]: unknown; }; type Plugins = PluginConfig; export type Scripts = Record; export type PackageJson = { name?: string; main?: string; bin?: string | Record; version?: string; workspaces?: string[] | { packages?: string[]; }; exports?: Exports; scripts?: Scripts; dependencies?: Dependencies; devDependencies?: Dependencies; peerDependencies?: Dependencies; optionalDependencies?: Dependencies; peerDependenciesMeta?: Record; module?: string; browser?: string; types?: string; typings?: string; } & Plugins; export type Package = { dir: string; name: string; pkgName: string | undefined; manifest: PackageJson; }; export {};