import * as ts from 'typescript'; import { ImportKind } from './utils'; interface SymbolExportInfo { readonly moduleSymbol: ts.Symbol; readonly importKind: ImportKind; /** If true, can't use an es6 import from a js file. */ readonly exportedSymbolIsTypeOnly: boolean; /** * The symbol as exported from this module. When undefined, it means * it is the default export */ readonly symbol: ts.Symbol; readonly sourceFile: ts.SourceFile; } export declare function getExportsForSymbol(program: ts.Program, importingFile: ts.SourceFile, symbol: ts.Symbol): readonly SymbolExportInfo[]; /** * Locate the file that exports the given symbol which is a preferable place to import it. * @param program * @param importingFile * @param symbol */ export declare function getPreferredExportForImport(program: ts.Program, importingFile: ts.SourceFile, symbol: ts.Symbol): SymbolExportInfo; export {}; //# sourceMappingURL=get-exports-for-symbol.d.ts.map