import { z } from 'zod'; declare const DEFAULT_ORDER: ["types", "type", "name", "version", "packlint", "private", "description", "keywords", "homepage", "bugs", "repository", "funding", "license", "author", "contributors", "sideEffects", "packageManager", "module", "exports", "main", "browser", "typings", "typesVersions", "bin", "man", "directories", "files", "workspaces", "scripts", "config", "dependencies", "devDependencies", "optionalDependencies", "peerDependencies", "peerDependenciesMeta", "bundledDependencies", "resolutions", "engines", "os", "cpu", "publishConfig"]; declare const ConfigSchema: z.ZodDefault>; ignores: z.ZodOptional>; extends: z.ZodOptional; rules: z.ZodDefault>; merge: z.ZodOptional>; }, "strip", z.ZodTypeAny, { order?: string[]; merge?: Record; }, { order?: string[]; merge?: Record; }>>; }, "strip", z.ZodTypeAny, { files?: string[]; ignores?: string[]; extends?: string; rules?: { order?: string[]; merge?: Record; }; }, { files?: string[]; ignores?: string[]; extends?: string; rules?: { order?: string[]; merge?: Record; }; }>>; declare type ConfigType = z.infer; declare const DefaultConfig: { files?: string[]; ignores?: string[]; extends?: string; rules?: { order?: string[]; merge?: Record; }; }; declare const PackageJSONSchema: z.ZodObject<{ name: z.ZodOptional; version: z.ZodOptional; packlint: z.ZodOptional; private: z.ZodOptional; description: z.ZodOptional; keywords: z.ZodOptional>; homepage: z.ZodOptional; bugs: z.ZodOptional; email: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string; url?: string; }, { email?: string; url?: string; }>, z.ZodString]>>; repository: z.ZodOptional; url: z.ZodOptional; directory: z.ZodOptional; }, "strip", z.ZodTypeAny, { type?: string; url?: string; directory?: string; }, { type?: string; url?: string; directory?: string; }>, z.ZodString]>>; funding: z.ZodOptional, z.ZodString, z.ZodArray, "many">]>>; license: z.ZodOptional; author: z.ZodOptional; url: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string; url?: string; name?: string; }, { email?: string; url?: string; name?: string; }>, z.ZodString]>>; contributors: z.ZodOptional; url: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string; url?: string; name?: string; }, { email?: string; url?: string; name?: string; }>, "many">>; sideEffects: z.ZodOptional; packageManager: z.ZodOptional; type: z.ZodOptional>; exports: z.ZodOptional]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodString>]>>]>>]>>; main: z.ZodOptional; module: z.ZodOptional; browser: z.ZodOptional; types: z.ZodOptional; typings: z.ZodOptional; typesVersions: z.ZodOptional>; }, "strict", z.ZodTypeAny, { '*'?: string[]; }, { '*'?: string[]; }>>>; bin: z.ZodOptional]>>; man: z.ZodOptional, z.ZodString]>>; directories: z.ZodOptional; doc: z.ZodOptional; example: z.ZodOptional; lib: z.ZodOptional; man: z.ZodOptional; test: z.ZodOptional; }, "strip", z.ZodTypeAny, { bin?: string; man?: string; doc?: string; example?: string; lib?: string; test?: string; }, { bin?: string; man?: string; doc?: string; example?: string; lib?: string; test?: string; }>>; files: z.ZodOptional>; workspaces: z.ZodOptional, z.ZodObject<{ packages: z.ZodOptional>; nohoist: z.ZodOptional>; }, "strip", z.ZodTypeAny, { packages?: string[]; nohoist?: string[]; }, { packages?: string[]; nohoist?: string[]; }>]>>; scripts: z.ZodOptional; prepublish: z.ZodOptional; prepare: z.ZodOptional; prepublishOnly: z.ZodOptional; prepack: z.ZodOptional; postpack: z.ZodOptional; publish: z.ZodOptional; postpublish: z.ZodOptional; preinstall: z.ZodOptional; install: z.ZodOptional; postinstall: z.ZodOptional; preuninstall: z.ZodOptional; uninstall: z.ZodOptional; postuninstall: z.ZodOptional; preversion: z.ZodOptional; version: z.ZodOptional; postversion: z.ZodOptional; pretest: z.ZodOptional; test: z.ZodOptional; posttest: z.ZodOptional; prestop: z.ZodOptional; stop: z.ZodOptional; poststop: z.ZodOptional; prestart: z.ZodOptional; start: z.ZodOptional; poststart: z.ZodOptional; prerestart: z.ZodOptional; restart: z.ZodOptional; postrestart: z.ZodOptional; serve: z.ZodOptional; }, "strip", z.ZodString, { [x: string]: string; version?: string; test?: string; lint?: string; prepublish?: string; prepare?: string; prepublishOnly?: string; prepack?: string; postpack?: string; publish?: string; postpublish?: string; preinstall?: string; install?: string; postinstall?: string; preuninstall?: string; uninstall?: string; postuninstall?: string; preversion?: string; postversion?: string; pretest?: string; posttest?: string; prestop?: string; stop?: string; poststop?: string; prestart?: string; start?: string; poststart?: string; prerestart?: string; restart?: string; postrestart?: string; serve?: string; }, { [x: string]: string; version?: string; test?: string; lint?: string; prepublish?: string; prepare?: string; prepublishOnly?: string; prepack?: string; postpack?: string; publish?: string; postpublish?: string; preinstall?: string; install?: string; postinstall?: string; preuninstall?: string; uninstall?: string; postuninstall?: string; preversion?: string; postversion?: string; pretest?: string; posttest?: string; prestop?: string; stop?: string; poststop?: string; prestart?: string; start?: string; poststart?: string; prerestart?: string; restart?: string; postrestart?: string; serve?: string; }>>; config: z.ZodOptional>; dependencies: z.ZodOptional>; devDependencies: z.ZodOptional>; optionalDependencies: z.ZodOptional>; peerDependencies: z.ZodOptional>; peerDependenciesMeta: z.ZodOptional>>; bundledDependencies: z.ZodOptional, z.ZodBoolean]>>; resolutions: z.ZodOptional>; engines: z.ZodOptional; }, "strip", z.ZodString, { [x: string]: string; node?: string; }, { [x: string]: string; node?: string; }>>; os: z.ZodOptional>; cpu: z.ZodOptional>; publishConfig: z.ZodOptional>>; tag: z.ZodOptional>; registry: z.ZodOptional>; type: z.ZodOptional>; main: z.ZodOptional; browser: z.ZodOptional; module: z.ZodOptional; exports: z.ZodOptional]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodString>]>>]>>]>>; bin: z.ZodOptional]>>; types: z.ZodOptional; typings: z.ZodOptional; }, "strip", z.ZodAny, { [x: string]: any; types?: string; type?: "commonjs" | "module"; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; bin?: string | Record; access?: "public" | "restricted"; tag?: string; registry?: string; }, { [x: string]: any; types?: string; type?: "commonjs" | "module"; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; bin?: string | Record; access?: "public" | "restricted"; tag?: string; registry?: string; }>>; }, "passthrough", z.ZodTypeAny, { types?: string; type?: "commonjs" | "module"; name?: string; version?: string; packlint?: boolean; private?: boolean; description?: string; keywords?: string[]; homepage?: string; bugs?: string | { email?: string; url?: string; }; repository?: string | { type?: string; url?: string; directory?: string; }; funding?: string | { type?: string; url?: string; } | { type?: string; url?: string; }[]; license?: string; author?: string | { email?: string; url?: string; name?: string; }; contributors?: { email?: string; url?: string; name?: string; }[]; sideEffects?: boolean; packageManager?: string; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; typesVersions?: Record; bin?: string | Record; man?: string | string[]; directories?: { bin?: string; man?: string; doc?: string; example?: string; lib?: string; test?: string; }; files?: string[]; workspaces?: string[] | { packages?: string[]; nohoist?: string[]; }; scripts?: { [x: string]: string; version?: string; test?: string; lint?: string; prepublish?: string; prepare?: string; prepublishOnly?: string; prepack?: string; postpack?: string; publish?: string; postpublish?: string; preinstall?: string; install?: string; postinstall?: string; preuninstall?: string; uninstall?: string; postuninstall?: string; preversion?: string; postversion?: string; pretest?: string; posttest?: string; prestop?: string; stop?: string; poststop?: string; prestart?: string; start?: string; poststart?: string; prerestart?: string; restart?: string; postrestart?: string; serve?: string; }; config?: { [x: string]: any; }; dependencies?: Record; devDependencies?: Record; optionalDependencies?: Record; peerDependencies?: Record; peerDependenciesMeta?: Record; bundledDependencies?: boolean | string[]; resolutions?: Record; engines?: { [x: string]: string; node?: string; }; os?: string[]; cpu?: string[]; publishConfig?: { [x: string]: any; types?: string; type?: "commonjs" | "module"; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; bin?: string | Record; access?: "public" | "restricted"; tag?: string; registry?: string; }; }, { types?: string; type?: "commonjs" | "module"; name?: string; version?: string; packlint?: boolean; private?: boolean; description?: string; keywords?: string[]; homepage?: string; bugs?: string | { email?: string; url?: string; }; repository?: string | { type?: string; url?: string; directory?: string; }; funding?: string | { type?: string; url?: string; } | { type?: string; url?: string; }[]; license?: string; author?: string | { email?: string; url?: string; name?: string; }; contributors?: { email?: string; url?: string; name?: string; }[]; sideEffects?: boolean; packageManager?: string; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; typesVersions?: Record; bin?: string | Record; man?: string | string[]; directories?: { bin?: string; man?: string; doc?: string; example?: string; lib?: string; test?: string; }; files?: string[]; workspaces?: string[] | { packages?: string[]; nohoist?: string[]; }; scripts?: { [x: string]: string; version?: string; test?: string; lint?: string; prepublish?: string; prepare?: string; prepublishOnly?: string; prepack?: string; postpack?: string; publish?: string; postpublish?: string; preinstall?: string; install?: string; postinstall?: string; preuninstall?: string; uninstall?: string; postuninstall?: string; preversion?: string; postversion?: string; pretest?: string; posttest?: string; prestop?: string; stop?: string; poststop?: string; prestart?: string; start?: string; poststart?: string; prerestart?: string; restart?: string; postrestart?: string; serve?: string; }; config?: { [x: string]: any; }; dependencies?: Record; devDependencies?: Record; optionalDependencies?: Record; peerDependencies?: Record; peerDependenciesMeta?: Record; bundledDependencies?: boolean | string[]; resolutions?: Record; engines?: { [x: string]: string; node?: string; }; os?: string[]; cpu?: string[]; publishConfig?: { [x: string]: any; types?: string; type?: "commonjs" | "module"; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; bin?: string | Record; access?: "public" | "restricted"; tag?: string; registry?: string; }; }>; declare type PackageJSONType = z.infer; /** file entry path must start with './' */ declare const ExportsEntryPathSchema: z.ZodString; /** @see https://nodejs.org/api/packages.html#package-entry-points */ declare const ExportsEntryConditionSchema: z.ZodEnum<["require", "import", "default", "types", "node-addons", "node", "browswer", "react-native", "deno", "development", "production"]>; declare const ExportsEntryKeySchema: z.ZodUnion<[z.ZodString, z.ZodEnum<["require", "import", "default", "types", "node-addons", "node", "browswer", "react-native", "deno", "development", "production"]>]>; declare const ExportsEntryObjectSchema: z.ZodRecord]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodString>]>>]>>; declare const ExportsSchema: z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodUnion<[z.ZodString, z.ZodRecord]>, z.ZodString>]>>]>>]>; declare const PersonSchema: z.ZodObject<{ name: z.ZodString; email: z.ZodOptional; url: z.ZodOptional; }, "strip", z.ZodTypeAny, { email?: string; url?: string; name?: string; }, { email?: string; url?: string; name?: string; }>; declare type PackageJSONPath = string & { __endsWith: 'packageJSON'; }; declare function parsePackageJSONPath(s: string): PackageJSONPath; declare class PacklintError extends Error { display: string; name: string; constructor(message: string, name: string); formatMessage(): string; static of(e: unknown, name: string): PacklintError; } declare function getPackageJSON(path: PackageJSONPath): Promise<{ types?: string; type?: "commonjs" | "module"; name?: string; version?: string; packlint?: boolean; private?: boolean; description?: string; keywords?: string[]; homepage?: string; bugs?: string | { email?: string; url?: string; }; repository?: string | { type?: string; url?: string; directory?: string; }; funding?: string | { type?: string; url?: string; } | { type?: string; url?: string; }[]; license?: string; author?: string | { email?: string; url?: string; name?: string; }; contributors?: { email?: string; url?: string; name?: string; }[]; sideEffects?: boolean; packageManager?: string; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; typesVersions?: Record; bin?: string | Record; man?: string | string[]; directories?: { bin?: string; man?: string; doc?: string; example?: string; lib?: string; test?: string; }; files?: string[]; workspaces?: string[] | { packages?: string[]; nohoist?: string[]; }; scripts?: { [x: string]: string; version?: string; test?: string; lint?: string; prepublish?: string; prepare?: string; prepublishOnly?: string; prepack?: string; postpack?: string; publish?: string; postpublish?: string; preinstall?: string; install?: string; postinstall?: string; preuninstall?: string; uninstall?: string; postuninstall?: string; preversion?: string; postversion?: string; pretest?: string; posttest?: string; prestop?: string; stop?: string; poststop?: string; prestart?: string; start?: string; poststart?: string; prerestart?: string; restart?: string; postrestart?: string; serve?: string; }; config?: { [x: string]: any; }; dependencies?: Record; devDependencies?: Record; optionalDependencies?: Record; peerDependencies?: Record; peerDependenciesMeta?: Record; bundledDependencies?: boolean | string[]; resolutions?: Record; engines?: { [x: string]: string; node?: string; }; os?: string[]; cpu?: string[]; publishConfig?: { [x: string]: any; types?: string; type?: "commonjs" | "module"; module?: string; exports?: string | Record>>; main?: string; browser?: string; typings?: string; bin?: string | Record; access?: "public" | "restricted"; tag?: string; registry?: string; }; }>; declare function writePackageJSON(packgeJSON: PackageJSONType, path: PackageJSONPath): Promise; declare function getConfig({ cwd }?: { cwd: string; }): Promise<{ files?: string[]; ignores?: string[]; extends?: string; rules?: { order?: string[]; merge?: Record; }; }>; declare function getAllPackageJSONPath(): Promise; declare namespace getAllPackageJSONPath { var sync: () => string[]; } declare function getAllPackageJSONPathByConfig(): Promise; export { ConfigSchema, ConfigType, DEFAULT_ORDER, DefaultConfig, ExportsEntryConditionSchema, ExportsEntryKeySchema, ExportsEntryObjectSchema, ExportsEntryPathSchema, ExportsSchema, PackageJSONPath, PackageJSONSchema, PackageJSONType, PacklintError, PersonSchema, getAllPackageJSONPath, getAllPackageJSONPathByConfig, getConfig, getPackageJSON, parsePackageJSONPath, writePackageJSON };