UNPKG

1.01 kBTypeScriptView Raw
1import ts from 'typescript';
2export declare function getSourceFiles(program: ts.Program): readonly ts.SourceFile[];
3export declare function getSourceFile(program: ts.Program, fileName: string): ts.SourceFile | undefined;
4export declare function getSourceFileOrThrow(program: ts.Program, fileName: string): ts.SourceFile;
5export declare function isDeclarationFile(node: ts.SourceFile): boolean;
6export declare function getFilePath(node: ts.SourceFile): string;
7export declare function getText(node: ts.Node): string;
8export declare function getImportDeclarations(node: ts.SourceFile): readonly ts.ImportDeclaration[];
9export declare function getExportDeclarations(node: ts.SourceFile): readonly ts.ExportDeclaration[];
10export declare function getExportAssignments(node: ts.SourceFile): readonly ts.ExportAssignment[];
11export declare function createSourceMapRange(node: ts.Node): ts.SourceMapRange;
12export declare function getExportedSymbols(typeChecker: ts.TypeChecker, node: ts.SourceFile): readonly ts.Symbol[];