UNPKG

1.37 kBTypeScriptView Raw
1import ts from 'typescript';
2import * as node_ from './node';
3export declare function getAliasNode(node: ts.ImportSpecifier | ts.ExportSpecifier): ts.Identifier | undefined;
4export declare function getAliasName(node: ts.ImportSpecifier | ts.ExportSpecifier): string | undefined;
5export declare function getModuleSpecifier(node: ts.ImportDeclaration | ts.ExportDeclaration): ts.StringLiteral | undefined;
6export declare function getModuleSpecifierSymbol(typeChecker: ts.TypeChecker, node: ts.ImportDeclaration | ts.ExportDeclaration): ts.Symbol | undefined;
7export declare function getModuleSpecifierSourceFile(typeChecker: ts.TypeChecker, node: ts.ImportDeclaration | ts.ExportDeclaration): ts.SourceFile | undefined;
8export declare function getModuleSpecifierSourceFileOrThrow(typeChecker: ts.TypeChecker, node: ts.ImportDeclaration | ts.ExportDeclaration): ts.SourceFile;
9export declare function isExportEquals(node: ts.ExportAssignment): boolean;
10export declare function hasValueReference(program: ts.Program, languageService: ts.LanguageService, node: ts.ImportDeclaration): boolean;
11export declare function hasLocalValueReferences(program: ts.Program, languageService: ts.LanguageService, currentSourceFile: ts.SourceFile, node: node_.AnyNameableNode): boolean;
12export declare function getImportNameNode(node: ts.ImportSpecifier): ts.ImportSpecifier | ts.Identifier;