import type { SourceFile, Symbol } from 'ts-morph'; /** Function executed for each source file, returns all nodes to recursively add source files of */ type GetSymbols = (sourceFile: SourceFile) => Symbol[]; /** Function to decide whether traversal should be aborted (current file will be excluded) */ type AbortTraversal = (sourceFile: SourceFile) => boolean; /** * Start traversal from `entryFile`, `getSymbols` from this source file, then * get source files referencing these symbols. Keep traversing recursively, * until `abortTraversal` returns `true`. */ export declare const getReferencedSourceFiles: (entryFile: SourceFile, getSymbols: GetSymbols, abortTraversal?: AbortTraversal) => SourceFile[]; export {};