import { exportStatement, namedExportPathFull, importStatement } from "../../../ts-ast-utils/index"; /** * @description * Find the non delegation export that corresponds to the provided named export ??or default export chain??. * * ```ts * export {A} from "./some/where"; * // ./some/where * export * from "./some/where1"; * export * from "./some/where2"; * // ./some/where2 * export function A() {} * // ./some/where1 * //nothing * ``` * * @todo * ```ts * import {foo} from "./some/where"; * export default foo; * // ./some/where * export * from "./some/where1"; * export * from "./some/where2"; * // ./some/where2 * export function A() {} * // ./some/where1 * //nothing * ``` * * @todo * there are cases that it has to return a delegation export * @todo * have to test that it returns firstNodeModulesRes */ export declare function resolveNamedExportPathfullToNonDelegationExport(statement: namedExportPathFull | importStatement, absolutePathToFileContainingStatement: string, resolutionIndex: number): toReturn[]; declare type toReturn = { statement: exportStatement; absolutePathToTsFile: string; resolutionIndex: number; }; export {};