import type { Undefinable } from "./utils/types.js"; export type Package = { name?: string; version?: string; description?: string; keywords?: string[]; homepage?: { [k: string]: any; } | "."; bugs?: { [k: string]: any; } | string; license?: string; licenses?: { type?: string; url?: string; [k: string]: any; }[]; author?: Person; contributors?: Person[]; maintainers?: Person[]; type?: "module" | "commonjs"; exports?: { import?: string; types?: string; require?: string; node?: string; default?: string; [k: string]: string | undefined; }; files?: string[]; main?: string; bin?: string | { [k: string]: any; }; types?: string; typings?: string; man?: string[]; directories?: { bin?: string; doc?: string; example?: string; lib?: string; man?: string; test?: string; [k: string]: any; }; repository?: { [k: string]: any; } | string; scripts?: { [k: string]: string | undefined; }; config?: { [k: string]: any; }; dependencies?: Dependency; devDependencies?: Dependency; optionalDependencies?: Dependency; peerDependencies?: Dependency; resolutions?: Dependency; engines?: { [k: string]: string; }; engineStrict?: boolean; os?: string[]; cpu?: string[]; preferGlobal?: boolean; private?: boolean; publishConfig?: { [k: string]: any; }; dist?: { shasum?: string; tarball?: string; [k: string]: any; }; readme?: string; module?: string; esnext?: string | { [k: string]: any; }; workspaces?: string[]; moker?: MokerOptions; "lint-staged"?: LintStagedOptions; [k: string]: any; }; type Person = { [k: string]: any; } | string; type Dependency = { [k: string]: string; }; type MokerOptions = { scoped?: boolean; plugins?: string[]; }; type LintStagedOptions = { [key: string]: string | string[]; }; export declare function hasPackage({ directory }: { directory: string; }): Promise; export declare function readPackage({ directory }: { directory: string; }): Promise; export declare function removePackage({ directory }: { directory: string; }): Promise; export declare function writePackage({ directory, data, append, }: { directory: string; data: Undefinable; append?: boolean; }): Promise; export declare function updatePackage({ directory, merge, }: { directory: string; merge: (existingData: Package) => Package; }): Promise; export declare function sortPackage({ directory }: { directory: string; }): Promise; export {}; //# sourceMappingURL=package.d.ts.map