import { z } from "zod/mini";
/**
 * Comprehensive package.json schema including all common properties.
 * Feel free to add properties to this,
 * 🟠ℹ️   BUT ENSURE OPTIONAL STUFF IS ACTUALLY OPTIONAL  ℹ️🟠
 * 🟠ℹ️ SINCE THIS IS USED IN A NUMBER OF LOCATIONS WHERE ℹ️🟠
 * 🟠ℹ️ WE CANNOT ENFORCE/GUARANTEE ANY PARTICULAR PROPS  ℹ️🟠
 */
declare const packageJsonSchema: z.ZodMiniObject<{
  name: z.ZodMiniString<string>;
  version: z.ZodMiniString<string>;
  dependencies: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
  devDependencies: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
  peerDependencies: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
  exports: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniAny>>;
  main: z.ZodMiniOptional<z.ZodMiniString<string>>;
  types: z.ZodMiniOptional<z.ZodMiniString<string>>;
  author: z.ZodMiniOptional<z.ZodMiniString<string>>;
  description: z.ZodMiniOptional<z.ZodMiniString<string>>;
  engines: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
  license: z.ZodMiniOptional<z.ZodMiniString<string>>;
  private: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
  repository: z.ZodMiniOptional<z.ZodMiniObject<{
    type: z.ZodMiniString<string>;
    url: z.ZodMiniString<string>;
  }, z.core.$strip>>;
  scripts: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
  type: z.ZodMiniOptional<z.ZodMiniEnum<{
    module: "module";
    commonjs: "commonjs";
  }>>;
}, z.core.$loose>;
/**
 * Comprehensive representation of a package.json file.
 * Consolidates all properties from previous type definitions.
 *
 * @public
 */
type PackageJson = z.infer<typeof packageJsonSchema>;
/**
 * Options for reading package.json files
 *
 * @public
 */
interface ReadPackageJsonOptions {
  /**
   * Default values to merge with the parsed package.json.
   * Parsed values take precedence over defaults.
   */
  defaults?: Partial<PackageJson>;
  /**
   * Skip Zod schema validation. When true, the file is parsed but not validated.
   * Defaults to false.
   */
  skipSchemaValidation?: boolean;
}
/**
 * Read the `package.json` file at the given path
 *
 * @param filePath - Path to package.json to read
 * @param options - Options object for controlling read behavior
 * @returns The parsed package.json
 * @public
 */
declare function readPackageJson(filePath: string | URL, options?: ReadPackageJsonOptions): Promise<PackageJson>;
export { ReadPackageJsonOptions as n, readPackageJson as r, PackageJson as t };
//# sourceMappingURL=readPackageJson-Cr_lbjVR.d.ts.map