import type { ExportItem } from "./make-export-items.js"; export type ExportEntry = string | ({ import: string; types?: string; } & Record); export type ExportsField = Record; type Options = { /** * Custom condition to add to the package.json exports for supporting live types in a monorepo */ customCondition?: string | null; /** * The output directory for the package export files * @default `dist` */ outputDir?: string; /** * When true, emit plain string entries pointing directly to source files, * omitting `import`, `types`, and any custom condition. * @default false */ sourceOnly?: boolean; }; /** * Given the list of filepaths and an optional outputDir, return a new object package.json#exports object */ declare function buildPackageJsonExports(exportItems: Array, options?: Options): ExportsField; export { buildPackageJsonExports, };