import type * as ts from 'typescript'; /** * The source files behind what the `package.json` nearest to `fileName` * publishes — `exports`, and the legacy `main` / `module` / `types` / `typings` * fields — as file names of `program`. * * A target that is a file of the program is taken as it is. One that is not — * the usual case, `./dist/index.mjs` — is traced back to source: the output * extension is dropped, a leading `dist`, `lib`, `build`, `out`, `esm` or `cjs` * directory (or the program's `outDir`) becomes `src` (or its `rootDir`), and * every TypeScript and JavaScript extension is tried. * Conditions of one subpath describe the same module, so a subpath is resolved * when any of its targets is; `types: './dist/types.d.mts'` written by a build * step need not have a source of its own. * * `undefined` when some subpath resolves to no file of the program: the * package's public surface is then not known, and the caller must not treat an * export as private. A directory with no `package.json` above it, or one that * publishes nothing, has no entry points — an application. */ export declare const packageEntryPoints: (program: ts.Program, fileName: string) => ReadonlySet | undefined; //# sourceMappingURL=package-entry-points.d.mts.map