import * as ts from 'typescript'; /** * Whether the value `fileName` exports as `exportName` may be read at runtime * by a file of `program`, or is public API because one of `entryPoints` * re-exports it. * * Answered from the import and export declarations of every file in the * program, nothing more, and it errs towards "used" wherever they do not decide * it: a non-type import counts as a value use whatever the importer does with * it, and a namespace or a module that leaves the file whole (a dynamic * `import()`, `export { ns }`, `f(ns)`) uses every export. A type-only import * or * re-export is never a use. A re-export is followed to what imports the * re-exporting file, so a barrel is transparent. * * Files outside `program` are not seen at all, so an importer only counts when * the TypeScript project that lints `fileName` includes it. */ export declare const isExportedValueUsed: (program: ts.Program, fileName: string, exportName: string, entryPoints: ReadonlySet) => boolean; //# sourceMappingURL=export-usage.d.mts.map