export interface PackageJsonFileProps { /** The name of the package */ name: string; /** The version of the package */ version: string; /** The description of the package */ description?: string; /** The license of the package */ license?: string; /** The author of the package */ author?: string; /** The homepage of the package */ homepage?: string; /** The repository of the package */ repository?: string | { type: string; url: string; }; /** The keywords of the package */ keywords?: string[]; /** Whether this is a commonjs or module. Defaults to module. */ type?: "module" | "commonjs"; /** * The hard-coded dependencies of the package. References to external packages * will add to the dependency list automatically. Only list dependencies here * that are not referenced via refkey. */ dependencies?: Record; /** The hard-coded exports of the package. */ exports?: PackageExports | ExportPath; /** The dev dependencies of the package. */ devDependencies?: Record; /** The peer dependencies of the package. */ peerDependencies?: Record; /** The scripts entries of the package. */ scripts?: Record; } export interface ExportConditions { [condition: string]: string | ExportConditions; } export type ExportPath = string | ExportConditions; export interface PackageExports { [key: string]: ExportPath; } /** * A file containing a package.json that defines a package. When placed inside a * {@link PackageDirectory}, it will contain dependencies and exports for * symbols defined inside the package. Additional dependencies and exports can * be provided. * * @example * ```tsx * * ``` */ export declare function PackageJsonFile(props: PackageJsonFileProps): import("@alloy-js/core").Children; //# sourceMappingURL=PackageJson.d.ts.map