@artel/artc 0.6.25191

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (281) hide show
  1. package/build/Cli.js +20 -0
  2. package/build/api/Api.js +664 -0
  3. package/build/api/ApiNodeJS.js +20 -0
  4. package/build/api/ApiServices.js +12847 -0
  5. package/build/chunk-BQHCAH6D.js +588 -0
  6. package/build/chunk-O2JKESUU.js +63219 -0
  7. package/build/chunk-QRBDQKYM.js +94 -0
  8. package/build/types/Cli.d.ts +3 -0
  9. package/build/types/analysis/AccessedMethod.d.ts +53 -0
  10. package/build/types/analysis/AnalyzedTranslationPackage.d.ts +191 -0
  11. package/build/types/analysis/Analyzer.d.ts +665 -0
  12. package/build/types/analysis/AutotypeCallExpressionMeaning.d.ts +25 -0
  13. package/build/types/analysis/BaseExpressionMeaning.d.ts +47 -0
  14. package/build/types/analysis/BuiltInOperators.d.ts +14 -0
  15. package/build/types/analysis/CallArgumentToParameterMatchResult.d.ts +30 -0
  16. package/build/types/analysis/CallArgumentsToParametersMatcher.d.ts +44 -0
  17. package/build/types/analysis/CallExpressionMeaning.d.ts +39 -0
  18. package/build/types/analysis/ConstructorOverloadResolver.d.ts +34 -0
  19. package/build/types/analysis/DeclarationsUsageCounter.d.ts +18 -0
  20. package/build/types/analysis/DereferenceExpressionMeaning.d.ts +23 -0
  21. package/build/types/analysis/DiagnosticCollector.d.ts +68 -0
  22. package/build/types/analysis/EntityLocalizationHelper.d.ts +15 -0
  23. package/build/types/analysis/FindModifier.d.ts +4 -0
  24. package/build/types/analysis/FoundDeclaration.d.ts +19 -0
  25. package/build/types/analysis/IdentifierExpressionMeaning.d.ts +98 -0
  26. package/build/types/analysis/ImportedPackageNameTree.d.ts +22 -0
  27. package/build/types/analysis/IndexedAccessExpressionMeaning.d.ts +26 -0
  28. package/build/types/analysis/IndexerAccess.d.ts +10 -0
  29. package/build/types/analysis/Localization.d.ts +54 -0
  30. package/build/types/analysis/LocalizationContext.d.ts +15 -0
  31. package/build/types/analysis/Lookup.d.ts +23 -0
  32. package/build/types/analysis/NamedTypeResolver.d.ts +42 -0
  33. package/build/types/analysis/NamedTypeSpecifierResolver.d.ts +20 -0
  34. package/build/types/analysis/NodeTypeUtils.d.ts +28 -0
  35. package/build/types/analysis/ObjectExpressionMeaning.d.ts +38 -0
  36. package/build/types/analysis/OperationOverloadResolver.d.ts +19 -0
  37. package/build/types/analysis/OverloadResolver.d.ts +12 -0
  38. package/build/types/analysis/PackageMemberLookup.d.ts +15 -0
  39. package/build/types/analysis/PrefixUnaryOperatorResolver.d.ts +27 -0
  40. package/build/types/analysis/PropertyAccessExpressionMeaning.d.ts +100 -0
  41. package/build/types/analysis/Scope.d.ts +309 -0
  42. package/build/types/analysis/SemanticContext.d.ts +320 -0
  43. package/build/types/analysis/SemanticContextBuilder.d.ts +54 -0
  44. package/build/types/analysis/SourceFileMembers.d.ts +92 -0
  45. package/build/types/analysis/SourcePackageDependencyGraph.d.ts +41 -0
  46. package/build/types/analysis/SourcePackageMembersCreator.d.ts +6 -0
  47. package/build/types/analysis/StatementBlockScopeBuilder.d.ts +22 -0
  48. package/build/types/analysis/SubstitutedMethod.d.ts +49 -0
  49. package/build/types/analysis/TagMeaning.d.ts +26 -0
  50. package/build/types/analysis/Tags.d.ts +29 -0
  51. package/build/types/analysis/TargetTypeHint.d.ts +5 -0
  52. package/build/types/analysis/TypeInferrer.d.ts +9 -0
  53. package/build/types/analysis/TypeMemberLookup.d.ts +27 -0
  54. package/build/types/analysis/TypeOverloadResolver.d.ts +7 -0
  55. package/build/types/analysis/UserDefinableBinaryOperatorResolver.d.ts +37 -0
  56. package/build/types/analysis/Utils.d.ts +17 -0
  57. package/build/types/analysis/VariableAccess.d.ts +10 -0
  58. package/build/types/analysis/VariantLookup.d.ts +20 -0
  59. package/build/types/analysis/Visitor.d.ts +7 -0
  60. package/build/types/analysis/WellKnownDeclarations.d.ts +34 -0
  61. package/build/types/analysis/index.d.ts +8 -0
  62. package/build/types/api/Api.d.ts +59 -0
  63. package/build/types/api/ApiNodeJS.d.ts +5 -0
  64. package/build/types/api/ApiServices.d.ts +3 -0
  65. package/build/types/common/AccessKind.d.ts +4 -0
  66. package/build/types/common/ArtelFileCheck.d.ts +2 -0
  67. package/build/types/common/Cached.d.ts +6 -0
  68. package/build/types/common/CancellationToken.d.ts +13 -0
  69. package/build/types/common/Constants.d.ts +19 -0
  70. package/build/types/common/Debug.d.ts +10 -0
  71. package/build/types/common/Delayed.d.ts +7 -0
  72. package/build/types/common/ErrorHandlingStrategy.d.ts +3 -0
  73. package/build/types/common/FormatString.d.ts +5 -0
  74. package/build/types/common/HelperPhrases.d.ts +11 -0
  75. package/build/types/common/Interner.d.ts +4 -0
  76. package/build/types/common/L10nConfig.d.ts +1 -0
  77. package/build/types/common/Lazy.d.ts +9 -0
  78. package/build/types/common/LocalizationHelper.d.ts +10 -0
  79. package/build/types/common/Logger.d.ts +10 -0
  80. package/build/types/common/Name.d.ts +83 -0
  81. package/build/types/common/NameFormatConversion.d.ts +12 -0
  82. package/build/types/common/NonEmptyArray.d.ts +8 -0
  83. package/build/types/common/Option.d.ts +28 -0
  84. package/build/types/common/PackageDialect.d.ts +5 -0
  85. package/build/types/common/PackageLocale.d.ts +15 -0
  86. package/build/types/common/PackageLocaleGuard.d.ts +1 -0
  87. package/build/types/common/Path.d.ts +8 -0
  88. package/build/types/common/PerformanceMeasurement.d.ts +20 -0
  89. package/build/types/common/Query.d.ts +39 -0
  90. package/build/types/common/Range.d.ts +10 -0
  91. package/build/types/common/Result.d.ts +13 -0
  92. package/build/types/common/SearchName.d.ts +13 -0
  93. package/build/types/common/ThrottledCancellationToken.d.ts +17 -0
  94. package/build/types/common/TreeQuery.d.ts +53 -0
  95. package/build/types/common/TreeTraversal.d.ts +13 -0
  96. package/build/types/common/Uri.d.ts +28 -0
  97. package/build/types/common/UriTree.d.ts +41 -0
  98. package/build/types/common/UserLocale.d.ts +2 -0
  99. package/build/types/common/WithDiagnostics.d.ts +19 -0
  100. package/build/types/common/YieldExecution.d.ts +1 -0
  101. package/build/types/common/index.d.ts +32 -0
  102. package/build/types/diagnostic/Diagnostic.d.ts +21 -0
  103. package/build/types/diagnostic/DiagnosticCode.d.ts +146 -0
  104. package/build/types/diagnostic/DiagnosticData.d.ts +20 -0
  105. package/build/types/diagnostic/DiagnosticFormatter.d.ts +8 -0
  106. package/build/types/diagnostic/RangeDiagnostic.d.ts +19 -0
  107. package/build/types/emitter/BlockStatementTransformationResult.d.ts +10 -0
  108. package/build/types/emitter/CustomModuleLoader.d.ts +1 -0
  109. package/build/types/emitter/DebugStack.d.ts +10 -0
  110. package/build/types/emitter/Emitter.d.ts +61 -0
  111. package/build/types/emitter/EmitterContext.d.ts +342 -0
  112. package/build/types/emitter/EmitterGeneratedDeclarationKind.d.ts +36 -0
  113. package/build/types/emitter/EmitterPackage.d.ts +60 -0
  114. package/build/types/emitter/EntityNameProviders.d.ts +33 -0
  115. package/build/types/emitter/ExpressionTransformationResult.d.ts +17 -0
  116. package/build/types/emitter/GeneralLowering.d.ts +72 -0
  117. package/build/types/emitter/Internal.d.ts +10 -0
  118. package/build/types/emitter/IntrinsicEntities.d.ts +118 -0
  119. package/build/types/emitter/IrBuilder.d.ts +108 -0
  120. package/build/types/emitter/IrToJs.d.ts +113 -0
  121. package/build/types/emitter/JavaScriptName.d.ts +1 -0
  122. package/build/types/emitter/PackageMemberDeclarationTransformationResult.d.ts +17 -0
  123. package/build/types/emitter/SimpleTransformationResult.d.ts +14 -0
  124. package/build/types/emitter/StatementTransformationResult.d.ts +16 -0
  125. package/build/types/emitter/StructuredTypeMemberDeclarationTransformationResult.d.ts +13 -0
  126. package/build/types/emitter/TransformationContinuationAction.d.ts +4 -0
  127. package/build/types/emitter/Transformer.d.ts +282 -0
  128. package/build/types/emitter/TypeAccessExpressionTransformationResult.d.ts +12 -0
  129. package/build/types/emitter/error-boundary.d.ts +10 -0
  130. package/build/types/emitter/index.d.ts +1 -0
  131. package/build/types/emitter/ir/AccessedEntities.d.ts +19 -0
  132. package/build/types/emitter/ir/LoweringOptions.d.ts +34 -0
  133. package/build/types/emitter/ir/Nodes.d.ts +1585 -0
  134. package/build/types/emitter/ir/SourceLocation.d.ts +10 -0
  135. package/build/types/emitter/ir/index.d.ts +5 -0
  136. package/build/types/emitter/ir/types.d.ts +10 -0
  137. package/build/types/entities/AliasTypeEntity.d.ts +84 -0
  138. package/build/types/entities/BinaryOperatorEntity.d.ts +48 -0
  139. package/build/types/entities/ConstructorEntity.d.ts +99 -0
  140. package/build/types/entities/DereferenceOperatorEntity.d.ts +40 -0
  141. package/build/types/entities/DestructorEntity.d.ts +31 -0
  142. package/build/types/entities/EntityHiding.d.ts +27 -0
  143. package/build/types/entities/EntityNaming.d.ts +12 -0
  144. package/build/types/entities/GetterEntity.d.ts +86 -0
  145. package/build/types/entities/IndexerEntity.d.ts +51 -0
  146. package/build/types/entities/MethodEntity.d.ts +174 -0
  147. package/build/types/entities/MethodTypeEntity.d.ts +98 -0
  148. package/build/types/entities/PackageAliasEntity.d.ts +30 -0
  149. package/build/types/entities/PackageEntity.d.ts +56 -0
  150. package/build/types/entities/PackageMembers.d.ts +98 -0
  151. package/build/types/entities/SetterEntity.d.ts +78 -0
  152. package/build/types/entities/StructuredTypeEntity.d.ts +199 -0
  153. package/build/types/entities/SubstitutionApplicationMode.d.ts +4 -0
  154. package/build/types/entities/TypeEntityMembers.d.ts +36 -0
  155. package/build/types/entities/TypeExtensionEntity.d.ts +33 -0
  156. package/build/types/entities/TypeMemberContainer.d.ts +23 -0
  157. package/build/types/entities/TypeParameterEntity.d.ts +94 -0
  158. package/build/types/entities/UnaryOperatorEntity.d.ts +33 -0
  159. package/build/types/entities/VariableEntity.d.ts +423 -0
  160. package/build/types/entities/VariantEntity.d.ts +31 -0
  161. package/build/types/entities/VariantTypeEntity.d.ts +83 -0
  162. package/build/types/entities/Variants.d.ts +10 -0
  163. package/build/types/entities/index.d.ts +87 -0
  164. package/build/types/executor/CommandLineCompiler.d.ts +8 -0
  165. package/build/types/executor/Compiler.d.ts +15 -0
  166. package/build/types/executor/FileSystemUri.d.ts +5 -0
  167. package/build/types/executor/NodeCompiler.d.ts +39 -0
  168. package/build/types/executor/PhysicalFileSystem.d.ts +12 -0
  169. package/build/types/executor/PhysicalTypeScriptLibrariesProvider.d.ts +12 -0
  170. package/build/types/generated/BuiltInSystemPackages.d.ts +3 -0
  171. package/build/types/old/Executor.d.ts +14 -0
  172. package/build/types/old/JavaScriptEmitter.d.ts +1 -0
  173. package/build/types/old/JavaScriptEmittingVisitor.d.ts +1 -0
  174. package/build/types/old/NzonParser.d.ts +1 -0
  175. package/build/types/old/NzonScanner.d.ts +1 -0
  176. package/build/types/old/NzonSyntax.d.ts +1 -0
  177. package/build/types/old/RemoteWorkspaceFileSystem.d.ts +1 -0
  178. package/build/types/parser/CharacterCodes.d.ts +21 -0
  179. package/build/types/parser/ConvertTokenKind.d.ts +3 -0
  180. package/build/types/parser/KeywordDictionary.d.ts +12 -0
  181. package/build/types/parser/ParseNumber.d.ts +5 -0
  182. package/build/types/parser/Parser.d.ts +7 -0
  183. package/build/types/parser/ParserDiagnostic.d.ts +7 -0
  184. package/build/types/parser/ReservedIdentifierDictionary.d.ts +12 -0
  185. package/build/types/parser/Scanner.d.ts +60 -0
  186. package/build/types/parser/TokenKind.d.ts +73 -0
  187. package/build/types/parser/UnescapeText.d.ts +2 -0
  188. package/build/types/project/Compilation.d.ts +21 -0
  189. package/build/types/project/CompilationLoader.d.ts +104 -0
  190. package/build/types/project/FileSystemTree.d.ts +70 -0
  191. package/build/types/project/PackageConfigurationSerializer.d.ts +1 -0
  192. package/build/types/project/Position.d.ts +5 -0
  193. package/build/types/project/SourceFile.d.ts +21 -0
  194. package/build/types/project/SourcePackage.d.ts +151 -0
  195. package/build/types/project/TextFile.d.ts +11 -0
  196. package/build/types/project/configuration/BuildPackageApi.d.ts +75 -0
  197. package/build/types/project/configuration/ConfigurationConverter.d.ts +25 -0
  198. package/build/types/project/configuration/ConfigurationFileParser.d.ts +26 -0
  199. package/build/types/project/configuration/PackageConfigurationInterpreter.d.ts +27 -0
  200. package/build/types/project/configuration/types/PackageConfigurationEn.d.ts +90 -0
  201. package/build/types/project/configuration/types/PackageConfigurationRu.d.ts +91 -0
  202. package/build/types/project/index.d.ts +12 -0
  203. package/build/types/services/AddPropertyAssignmentService.d.ts +15 -0
  204. package/build/types/services/CompletionService.d.ts +95 -0
  205. package/build/types/services/CustomCommand.d.ts +120 -0
  206. package/build/types/services/DefinitionService.d.ts +19 -0
  207. package/build/types/services/DisplayService.d.ts +830 -0
  208. package/build/types/services/DocumentHighlightsService.d.ts +18 -0
  209. package/build/types/services/EvaluatableExpressionService.d.ts +15 -0
  210. package/build/types/services/FileSystemTreeDisplayService.d.ts +7 -0
  211. package/build/types/services/HoverService.d.ts +17 -0
  212. package/build/types/services/LanguageServer.d.ts +125 -0
  213. package/build/types/services/NodeSemanticInfo.d.ts +132 -0
  214. package/build/types/services/ProjectItemsService.d.ts +6 -0
  215. package/build/types/services/ReferencesService.d.ts +30 -0
  216. package/build/types/services/RenameService.d.ts +16 -0
  217. package/build/types/services/SelectionRangeService.d.ts +12 -0
  218. package/build/types/services/SemanticTokensService.d.ts +40 -0
  219. package/build/types/services/SourceFileItemsService.d.ts +42 -0
  220. package/build/types/services/TranslationService.d.ts +23 -0
  221. package/build/types/services/TreeUtils.d.ts +58 -0
  222. package/build/types/services/TypeDefinitionService.d.ts +9 -0
  223. package/build/types/services/Types.d.ts +22 -0
  224. package/build/types/services/Utils.d.ts +5 -0
  225. package/build/types/services/signature-help/SignatureHelpService.d.ts +17 -0
  226. package/build/types/services/signature-help/SignatureWithValueParameters.d.ts +114 -0
  227. package/build/types/services/signature-help/TypeParameterSignatureHelpProvider.d.ts +20 -0
  228. package/build/types/services/signature-help/ValueParametersSignatureHelpProvider.d.ts +15 -0
  229. package/build/types/services/signature-help/utils.d.ts +9 -0
  230. package/build/types/services/source-generation/EntityToSyntax.d.ts +47 -0
  231. package/build/types/services/source-generation/SourceGenerationService.d.ts +22 -0
  232. package/build/types/services/workspace/ClientTrackedSourceFiles.d.ts +41 -0
  233. package/build/types/services/workspace/CompilationController.d.ts +108 -0
  234. package/build/types/services/workspace/FileSystemTreeProviderBasedOnWatchedFileSystem.d.ts +61 -0
  235. package/build/types/services/workspace/ManuallyUpdatedFileSystemTreeProvider.d.ts +21 -0
  236. package/build/types/services/workspace/Workspace.d.ts +59 -0
  237. package/build/types/services/workspace/WorkspaceFileSystem.d.ts +5 -0
  238. package/build/types/services/workspace/WorkspaceFiles.d.ts +35 -0
  239. package/build/types/services/workspace/index.d.ts +7 -0
  240. package/build/types/tree/KeywordKind.d.ts +64 -0
  241. package/build/types/tree/NodeKind.d.ts +163 -0
  242. package/build/types/tree/TokenKind.d.ts +132 -0
  243. package/build/types/tree/TriviaKind.d.ts +7 -0
  244. package/build/types/tree/green/BaseNode.d.ts +12 -0
  245. package/build/types/tree/green/Nodes.d.ts +2235 -0
  246. package/build/types/tree/green/SyntaxFactory.d.ts +67 -0
  247. package/build/types/tree/green/SyntaxToCode.d.ts +116 -0
  248. package/build/types/tree/green/Token.d.ts +37 -0
  249. package/build/types/tree/green/Utils.d.ts +2 -0
  250. package/build/types/tree/green/index.d.ts +7 -0
  251. package/build/types/tree/index.d.ts +4 -0
  252. package/build/types/tree/red/BaseNode.d.ts +15 -0
  253. package/build/types/tree/red/Internal.d.ts +2 -0
  254. package/build/types/tree/red/NodePath.d.ts +10 -0
  255. package/build/types/tree/red/Nodes.d.ts +2237 -0
  256. package/build/types/tree/red/Token.d.ts +29 -0
  257. package/build/types/tree/red/Utils.d.ts +6 -0
  258. package/build/types/tree/red/index.d.ts +6 -0
  259. package/build/types/ts-interop/Entities.d.ts +634 -0
  260. package/build/types/ts-interop/TsInteropContext.d.ts +179 -0
  261. package/build/types/ts-interop/TsLibrariesProvider.d.ts +12 -0
  262. package/build/types/ts-interop/TsPackageContents.d.ts +64 -0
  263. package/build/types/ts-interop/TsPackageMembersCreator.d.ts +69 -0
  264. package/build/types/ts-interop/TsProgramLoader.d.ts +38 -0
  265. package/build/types/ts-interop/TsTypeMembersCreator.d.ts +45 -0
  266. package/build/types/ts-interop/Utils.d.ts +43 -0
  267. package/build/types/types/AliasType.d.ts +20 -0
  268. package/build/types/types/Internal.d.ts +1 -0
  269. package/build/types/types/MethodType.d.ts +23 -0
  270. package/build/types/types/ParameterType.d.ts +19 -0
  271. package/build/types/types/StandardTypes.d.ts +42 -0
  272. package/build/types/types/StructuredType.d.ts +25 -0
  273. package/build/types/types/Substitutions.d.ts +18 -0
  274. package/build/types/types/Type.d.ts +16 -0
  275. package/build/types/types/TypeFactory.d.ts +15 -0
  276. package/build/types/types/TypeMembers.d.ts +134 -0
  277. package/build/types/types/UnionType.d.ts +20 -0
  278. package/build/types/types/UnresolvedType.d.ts +16 -0
  279. package/build/types/types/VariantType.d.ts +19 -0
  280. package/build/types/types/index.d.ts +12 -0
  281. package/package.json +73 -0
@@ -0,0 +1,29 @@
1
+ import { Node, NodeKind, TokenFlags } from './index.js';
2
+ import { TokenKind, TriviaKind } from '../index.js';
3
+ import { Range } from '../../common/index.js';
4
+ import * as green from '../green/index.js';
5
+ import { BaseNode } from './BaseNode.js';
6
+ export type TokenParent = Node;
7
+ export declare class Token<TKind extends TokenKind = TokenKind> extends BaseNode {
8
+ readonly kind = NodeKind.Token;
9
+ readonly green: green.Token<TKind>;
10
+ readonly parent: TokenParent;
11
+ readonly children: never[];
12
+ get tokenKind(): TKind;
13
+ get value(): string;
14
+ get flags(): TokenFlags;
15
+ get isMissing(): boolean;
16
+ get rangeWithoutTrivia(): Range;
17
+ protected get thisAsNode(): Node;
18
+ constructor(green: green.Token<TKind>, rangeStart: number, parent: TokenParent);
19
+ getLeadingTrivia(): readonly Trivia[];
20
+ }
21
+ export declare class Trivia {
22
+ readonly green: green.Trivia;
23
+ readonly rangeStart: number;
24
+ readonly parent: Token;
25
+ get kind(): TriviaKind;
26
+ get value(): string;
27
+ get range(): Range;
28
+ constructor(green: green.Trivia, rangeStart: number, parent: Token);
29
+ }
@@ -0,0 +1,6 @@
1
+ import { KeywordKind, TokenKind } from '../index.js';
2
+ import { Identifier, Keyword, Node, Token } from './index.js';
3
+ export declare function isIdentifier(node: Node): node is Identifier;
4
+ export declare function isToken<T extends TokenKind>(node: Node, kind?: T): node is Token<T>;
5
+ export declare function isKeyword<T extends KeywordKind>(node: Node, kind?: T): node is Keyword<T>;
6
+ export declare function toSourceCode(node: Node, lengthLimit?: number): string;
@@ -0,0 +1,6 @@
1
+ export { TokenFlags } from '../green/index.js';
2
+ export * from '../NodeKind.js';
3
+ export * from './NodePath.js';
4
+ export * from './Nodes.js';
5
+ export * from './Token.js';
6
+ export * from './Utils.js';
@@ -0,0 +1,634 @@
1
+ import ts from 'typescript';
2
+ import { Tag } from '../analysis/Tags.js';
3
+ import { Lazy, Name, PackageLocale } from '../common/index.js';
4
+ import type { PackageEntity } from '../entities/PackageEntity.js';
5
+ import { PackageEntityDefinition } from '../entities/PackageEntity.js';
6
+ import { OriginalPackageMembers } from '../entities/PackageMembers.js';
7
+ import { OriginalTypeEntityMembers } from '../entities/TypeEntityMembers.js';
8
+ import { OriginalVariants } from '../entities/Variants.js';
9
+ import type { EntityContainingTypeParameter, EntityContainingValueParameter, EntityOwningGetter, TypeEntityWithMembers, VariantTypeEntity } from '../entities/index.js';
10
+ import { AliasTypeEntity, AliasTypeEntityDefinition, AliasedType, AnonymousMethodTypeEntity, AnonymousStructuredTypeEntity, BaseAspectTypes, BaseObjectType, ConstructorEntity, ConstructorEntityDefinition, DefaultConstructorEntityInfo, EntityHidingLevel, EntityKind, EntityNaming, EntityOwningSetter, GetterEntity, GetterEntityDefinition, IndexerEntity, IndexerEntityDefinition, InterfacePackageEntityInfo, MethodEntityDefinition, MethodTypeEntityDefinition, PackageMethodEntity, PackageMethodTypeEntity, PackageStructuredTypeEntity, PackageVariableEntity, PackageVariantTypeEntity, ParameterVariableEntity, ParameterVariableEntityContainer, SetterEntity, SetterEntityDefinition, SpecialVariableEntityInfo, StructuredTypeEntityDefinition, SubstitutionApplicationMode, TypeMemberEntityContainer, TypeMethodEntity, TypeParameterConstraint, TypeParameterEntity, TypeParameterEntityDefinition, TypeVariableEntity, VariableEntityDefinition, VariantEntity, VariantEntityDefinition, VariantTypeEntityDefinition } from '../entities/index.js';
11
+ import { JavaScriptImplementationConfig, PackageName, PlatformKind, ProgramPackage } from '../project/index.js';
12
+ import * as tree from '../tree/index.js';
13
+ import * as types from '../types/index.js';
14
+ import { TsInteropContext } from './TsInteropContext.js';
15
+ import { TsPackageContents } from './TsPackageContents.js';
16
+ export declare class TsPackageEntity implements PackageEntity {
17
+ readonly kind = EntityKind.Package;
18
+ private readonly _name;
19
+ private readonly _locale;
20
+ private readonly _contents;
21
+ private readonly _interfacePackageInfo;
22
+ constructor(_tsctx: TsInteropContext, name: PackageName, locale: PackageLocale, contents: Lazy<TsPackageContents>, interfacePackageInfo: InterfacePackageEntityInfo);
23
+ getName(): PackageName;
24
+ getLocale(): PackageLocale;
25
+ getMembers(): OriginalPackageMembers;
26
+ isInterface(): InterfacePackageEntityInfo | undefined;
27
+ getImplementedInterfacePackage(): PackageEntity | undefined;
28
+ getSupportedPlatforms(): readonly PlatformKind[];
29
+ getDefinition(): PackageEntityDefinition;
30
+ }
31
+ export declare class SourcePackageLoadedFromDtsEntity implements PackageEntity {
32
+ readonly kind = EntityKind.Package;
33
+ private readonly _tsctx;
34
+ private readonly _sourcePackage;
35
+ private readonly _implementationConfig;
36
+ private readonly _contents;
37
+ constructor(tsctx: TsInteropContext, sourcePackage: ProgramPackage, implementationConfig: JavaScriptImplementationConfig, contents: Lazy<TsPackageContents>);
38
+ getName(): PackageName;
39
+ getLocale(): PackageLocale;
40
+ getMembers(): OriginalPackageMembers;
41
+ isInterface(): InterfacePackageEntityInfo | undefined;
42
+ getImplementedInterfacePackage(): PackageEntity | undefined;
43
+ getSupportedPlatforms(): readonly PlatformKind[];
44
+ getPackageAliasTypeDeclarationEntity(node: tree.PackageAliasTypeDeclaration): AliasTypeEntity;
45
+ getPackageMethodDeclarationEntity(node: tree.PackageMethodDeclaration): PackageMethodEntity;
46
+ getPackageMethodTypeDeclarationEntity(node: tree.PackageMethodTypeDeclaration): PackageMethodTypeEntity;
47
+ getPackageStructuredTypeDeclarationEntity(node: tree.PackageStructuredTypeDeclaration): PackageStructuredTypeEntity;
48
+ getPackageVariableDeclarationEntity(node: tree.PackageVariableDeclaration): PackageVariableEntity;
49
+ getComputedPackageVariableDeclaration(node: tree.PackageVariableGetterDeclaration | tree.PackageVariableSetterDeclaration): PackageVariableEntity;
50
+ getPackageVariantTypeDeclarationEntity(node: tree.PackageVariantTypeDeclaration): PackageVariantTypeEntity;
51
+ getDefinition(): PackageEntityDefinition;
52
+ }
53
+ export declare class TsGlobalVariableEntity implements PackageVariableEntity {
54
+ private readonly _tsctx;
55
+ private readonly _symbol;
56
+ private readonly _isDefaultExport;
57
+ private readonly _containingPackage;
58
+ private readonly _forceHiddenInPackage;
59
+ readonly kind = EntityKind.Variable;
60
+ readonly subkind = "package";
61
+ private readonly _type;
62
+ private get declaration();
63
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _containingPackage: PackageEntity, _forceHiddenInPackage: boolean);
64
+ getName(): Name;
65
+ getContainingPackage(): PackageEntity;
66
+ getType(): types.Type;
67
+ getDefinition(): VariableEntityDefinition;
68
+ getGetter(): GetterEntity | undefined;
69
+ getSetter(): SetterEntity | undefined;
70
+ isConstant(): boolean;
71
+ isHidden(): EntityHidingLevel | undefined;
72
+ isSpecial(): SpecialVariableEntityInfo | undefined;
73
+ getTags(): readonly Tag[];
74
+ }
75
+ export declare class TsGlobalFunctionEntity implements PackageMethodEntity {
76
+ private readonly _tsctx;
77
+ private readonly _symbol;
78
+ private readonly _isDefaultExport;
79
+ private readonly _declaration;
80
+ private readonly _containingPackage;
81
+ private readonly _forceHiddenInPackage;
82
+ readonly kind = EntityKind.Method;
83
+ readonly subkind = "package";
84
+ private readonly _typeParameters;
85
+ private readonly _valueParameters;
86
+ private readonly _returnType;
87
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _declaration: ts.FunctionDeclaration, _containingPackage: PackageEntity, _forceHiddenInPackage: boolean);
88
+ getName(): Name;
89
+ getContainingPackage(): PackageEntity;
90
+ getTypeParameters(): readonly TypeParameterEntity[];
91
+ getValueParameters(): readonly ParameterVariableEntity[];
92
+ getReturnType(): types.Type;
93
+ getDefinition(): MethodEntityDefinition;
94
+ isAsync(): boolean;
95
+ isHidden(): EntityHidingLevel | undefined;
96
+ getTags(): readonly Tag[];
97
+ getTypeParametersArity(): number;
98
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
99
+ }
100
+ /**
101
+ * Сущность, представляющая классы и интерфейсы.
102
+ *
103
+ * Типы в .d.ts файлах могут быть объявлены следующим образом:
104
+ *
105
+ * ```
106
+ * interface Array<T> {
107
+ * length: number
108
+ * // ...
109
+ * }
110
+ *
111
+ * interface ArrayConstructor {
112
+ * new (arrayLength?: number): any[];
113
+ *
114
+ * from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
115
+ * }
116
+ *
117
+ * declare var Array: ArrayConstructor;
118
+ * ```
119
+ *
120
+ * Когда тип используется для указания типа переменной, в нём доступны поля, объявленные в интерфейсе:
121
+ * ```
122
+ * let a: Array<number>
123
+ * a.length // Ок.
124
+ * a.from // Ошибка, поле from не найдено.
125
+ * ```
126
+ *
127
+ * Когда тип используется в качестве значения, в т.ч. при вызове конструктора, в нём доступны поля из типа переменной,
128
+ * название которой совпадает с названием типа (в данном примере `declare var Array: ArrayConstructor`).
129
+ * ```
130
+ * new Array(1) // Ок.
131
+ * Array.from([1]) // Ок.
132
+ * Array.length // Ошибка, поле length не найдено.
133
+ * ```
134
+ *
135
+ * В Артель такие объявления объединяются в один ссылочный объект (StructuredTypeEntity). В него добавляются конструкторы,
136
+ * объявленные в тип переменной, а также все остальные члены типа (переменные, операции, индексаторы). Они становятся
137
+ * всеобщими, поскольку доступны через имя типа.
138
+ */
139
+ export declare class TsGlobalClassOrInterfaceEntity implements PackageStructuredTypeEntity {
140
+ private readonly _tsctx;
141
+ private readonly _symbol;
142
+ private readonly _isDefaultExport;
143
+ private readonly _containingPackage;
144
+ private readonly _forceHiddenInPackage;
145
+ readonly kind = EntityKind.StructuredType;
146
+ readonly subkind = "package";
147
+ private readonly _typeParameters;
148
+ private readonly _members;
149
+ private readonly _baseObjectType;
150
+ private readonly _baseAspectTypes;
151
+ private get declaration();
152
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _containingPackage: PackageEntity, _forceHiddenInPackage: boolean);
153
+ getNaming(): EntityNaming;
154
+ getName(): Name;
155
+ getContainingPackage(): PackageEntity;
156
+ getTypeParameters(): readonly TypeParameterEntity[];
157
+ getMembers(): OriginalTypeEntityMembers;
158
+ getDefinition(): StructuredTypeEntityDefinition;
159
+ isAspect(): boolean;
160
+ isRefObject(): boolean;
161
+ isPlainObject(): boolean;
162
+ getArity(): number;
163
+ getBaseObjectType(): BaseObjectType;
164
+ getBaseAspectTypes(): BaseAspectTypes;
165
+ isHidden(): EntityHidingLevel | undefined;
166
+ getTags(): readonly Tag[];
167
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
168
+ private isClassOrInterfaceAndVariableMerge;
169
+ }
170
+ export declare class SourceAndTsGlobalClassOrInterfaceMergeEntity implements PackageStructuredTypeEntity {
171
+ private readonly _tsctx;
172
+ private readonly _symbol;
173
+ private readonly _isDefaultExport;
174
+ private readonly _node;
175
+ readonly kind = EntityKind.StructuredType;
176
+ readonly subkind = "package";
177
+ private readonly _sourceData;
178
+ private readonly _members;
179
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _node: tree.PackageStructuredTypeDeclaration);
180
+ getNaming(): EntityNaming;
181
+ getName(): Name;
182
+ getContainingPackage(): PackageEntity;
183
+ getTypeParameters(): readonly TypeParameterEntity[];
184
+ getMembers(): OriginalTypeEntityMembers;
185
+ getDefinition(): StructuredTypeEntityDefinition;
186
+ isAspect(): boolean;
187
+ isRefObject(): boolean;
188
+ isPlainObject(): boolean;
189
+ getArity(): number;
190
+ getBaseObjectType(): BaseObjectType;
191
+ getBaseAspectTypes(): BaseAspectTypes;
192
+ isHidden(): EntityHidingLevel | undefined;
193
+ getTags(): readonly Tag[];
194
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
195
+ }
196
+ export declare class TsTypeLiteralEntity implements AnonymousStructuredTypeEntity {
197
+ private readonly _tsctx;
198
+ private readonly _symbol;
199
+ private readonly _containingPackage;
200
+ readonly kind = EntityKind.StructuredType;
201
+ readonly subkind = "anonymous";
202
+ private readonly _baseObjectType;
203
+ private readonly _baseAspectTypes;
204
+ private readonly _members;
205
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _containingPackage: PackageEntity);
206
+ getNaming(): EntityNaming;
207
+ getTypeParameters(): readonly TypeParameterEntity[];
208
+ getMembers(): OriginalTypeEntityMembers;
209
+ getDefinition(): StructuredTypeEntityDefinition;
210
+ isAspect(): boolean;
211
+ isRefObject(): boolean;
212
+ isPlainObject(): boolean;
213
+ getArity(): number;
214
+ getBaseObjectType(): BaseObjectType;
215
+ getBaseAspectTypes(): BaseAspectTypes;
216
+ isHidden(): EntityHidingLevel | undefined;
217
+ getTags(): readonly Tag[];
218
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
219
+ getContainingPackage(): PackageEntity;
220
+ }
221
+ export declare class TsNamedTypeLiteralEntity implements PackageStructuredTypeEntity {
222
+ private readonly _tsctx;
223
+ private readonly _symbol;
224
+ private readonly _owningNamedSymbol;
225
+ private readonly _isDefaultExport;
226
+ private readonly _owningDeclarationWithTypeParameters;
227
+ private readonly _containingPackage;
228
+ private readonly _forceHiddenInPackage;
229
+ readonly kind = EntityKind.StructuredType;
230
+ readonly subkind = "package";
231
+ private readonly _typeParameters;
232
+ private readonly _baseObjectType;
233
+ private readonly _baseAspectTypes;
234
+ private readonly _members;
235
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _owningNamedSymbol: ts.Symbol, _isDefaultExport: boolean, _owningDeclarationWithTypeParameters: ts.DeclarationWithTypeParameterChildren, _containingPackage: PackageEntity, _forceHiddenInPackage: boolean);
236
+ getNaming(): EntityNaming;
237
+ getName(): Name;
238
+ getContainingPackage(): PackageEntity;
239
+ getTypeParameters(): readonly TypeParameterEntity[];
240
+ getMembers(): OriginalTypeEntityMembers;
241
+ getDefinition(): StructuredTypeEntityDefinition;
242
+ isAspect(): boolean;
243
+ isRefObject(): boolean;
244
+ isPlainObject(): boolean;
245
+ getArity(): number;
246
+ getBaseObjectType(): BaseObjectType;
247
+ getBaseAspectTypes(): BaseAspectTypes;
248
+ isHidden(): EntityHidingLevel | undefined;
249
+ getTags(): readonly Tag[];
250
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
251
+ }
252
+ export declare class SourceAndTsNamedTypeLiteralMergeEntity implements PackageStructuredTypeEntity {
253
+ private readonly _tsctx;
254
+ private readonly _symbol;
255
+ private readonly _isDefaultExport;
256
+ private readonly _node;
257
+ readonly kind = EntityKind.StructuredType;
258
+ readonly subkind = "package";
259
+ private readonly _sourceData;
260
+ private readonly _members;
261
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _node: tree.PackageStructuredTypeDeclaration);
262
+ getNaming(): EntityNaming;
263
+ getName(): Name;
264
+ getContainingPackage(): PackageEntity;
265
+ getTypeParameters(): readonly TypeParameterEntity[];
266
+ getMembers(): OriginalTypeEntityMembers;
267
+ getDefinition(): StructuredTypeEntityDefinition;
268
+ isAspect(): boolean;
269
+ isRefObject(): boolean;
270
+ isPlainObject(): boolean;
271
+ getArity(): number;
272
+ getBaseObjectType(): BaseObjectType;
273
+ getBaseAspectTypes(): BaseAspectTypes;
274
+ isHidden(): EntityHidingLevel | undefined;
275
+ getTags(): readonly Tag[];
276
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
277
+ }
278
+ export declare class TsPropertyEntity implements TypeVariableEntity {
279
+ private readonly _tsctx;
280
+ private readonly _symbol;
281
+ private readonly _containingType;
282
+ private readonly _forceStatic;
283
+ readonly kind = EntityKind.Variable;
284
+ readonly subkind = "type";
285
+ private readonly _type;
286
+ private get declaration();
287
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _containingType: TypeEntityWithMembers, _forceStatic: boolean);
288
+ getName(): Name;
289
+ getType(): types.Type;
290
+ getDefinition(): VariableEntityDefinition;
291
+ getGetter(): GetterEntity | undefined;
292
+ getSetter(): SetterEntity | undefined;
293
+ isConstant(): boolean;
294
+ isHidden(): EntityHidingLevel | undefined;
295
+ isSpecial(): SpecialVariableEntityInfo | undefined;
296
+ getTags(): readonly Tag[];
297
+ getContainer(): TypeMemberEntityContainer;
298
+ isStatic(): boolean;
299
+ isRedefinable(): boolean;
300
+ isRedefined(): boolean;
301
+ isAbstract(): boolean;
302
+ isConsistent(): boolean;
303
+ isObservable(): boolean;
304
+ }
305
+ export declare class TsAccessorEntity implements TypeVariableEntity {
306
+ private readonly _tsctx;
307
+ private readonly _symbol;
308
+ private readonly _containingType;
309
+ private readonly _forceStatic;
310
+ readonly kind = EntityKind.Variable;
311
+ readonly subkind = "type";
312
+ private readonly _type;
313
+ private readonly _getter;
314
+ private readonly _setter;
315
+ private get getAccessorDeclaration();
316
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _containingType: TypeEntityWithMembers, _forceStatic: boolean);
317
+ getName(): Name;
318
+ getType(): types.Type;
319
+ getDefinition(): VariableEntityDefinition;
320
+ getGetter(): GetterEntity | undefined;
321
+ getSetter(): SetterEntity | undefined;
322
+ isConstant(): boolean;
323
+ isHidden(): EntityHidingLevel | undefined;
324
+ isSpecial(): SpecialVariableEntityInfo | undefined;
325
+ getTags(): readonly Tag[];
326
+ getContainer(): TypeMemberEntityContainer;
327
+ isStatic(): boolean;
328
+ isRedefinable(): boolean;
329
+ isRedefined(): boolean;
330
+ isAbstract(): boolean;
331
+ isConsistent(): boolean;
332
+ isObservable(): boolean;
333
+ }
334
+ export declare class TsGetAccessorEntity implements GetterEntity {
335
+ private readonly _tsctx;
336
+ private readonly _declaration;
337
+ private readonly _owningEntity;
338
+ private readonly _containingType;
339
+ private readonly _returnType;
340
+ readonly kind = EntityKind.Getter;
341
+ constructor(_tsctx: TsInteropContext, _declaration: ts.GetAccessorDeclaration, _owningEntity: EntityOwningGetter, _containingType: TypeEntityWithMembers, _returnType: types.Type);
342
+ getReturnType(): types.Type;
343
+ getDefinition(): GetterEntityDefinition;
344
+ isModifyingOwningPlainObject(): boolean;
345
+ getOwningEntity(): EntityOwningGetter;
346
+ isHidden(): EntityHidingLevel | undefined;
347
+ getTags(): readonly Tag[];
348
+ }
349
+ export declare class TsSetAccessorEntity implements SetterEntity {
350
+ private readonly _tsctx;
351
+ private readonly _declaration;
352
+ private readonly _owningEntity;
353
+ private readonly _containingType;
354
+ readonly kind = EntityKind.Setter;
355
+ constructor(_tsctx: TsInteropContext, _declaration: ts.SetAccessorDeclaration, _owningEntity: EntityOwningGetter, _containingType: TypeEntityWithMembers);
356
+ getDefinition(): SetterEntityDefinition;
357
+ isModifyingOwningPlainObject(): boolean;
358
+ getOwningEntity(): EntityOwningSetter;
359
+ isHidden(): EntityHidingLevel | undefined;
360
+ getTags(): readonly Tag[];
361
+ }
362
+ export declare class TsMethodEntity implements TypeMethodEntity {
363
+ private readonly _tsctx;
364
+ private readonly _symbol;
365
+ private readonly _declaration;
366
+ private readonly _containingType;
367
+ private readonly _forceStatic;
368
+ readonly kind = EntityKind.Method;
369
+ readonly subkind = "type";
370
+ private readonly _typeParameters;
371
+ private readonly _valueParameters;
372
+ private readonly _returnType;
373
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _declaration: ts.MethodDeclaration | ts.MethodSignature, _containingType: TypeEntityWithMembers, _forceStatic: boolean);
374
+ getName(): Name;
375
+ getTypeParameters(): readonly TypeParameterEntity[];
376
+ getValueParameters(): readonly ParameterVariableEntity[];
377
+ getReturnType(): types.Type;
378
+ getDefinition(): MethodEntityDefinition;
379
+ getContainer(): TypeMemberEntityContainer;
380
+ isStatic(): boolean;
381
+ isRedefinable(): boolean;
382
+ isRedefined(): boolean;
383
+ isAbstract(): boolean;
384
+ isModifyingOwningPlainObject(): boolean;
385
+ isAsync(): boolean;
386
+ isHidden(): EntityHidingLevel | undefined;
387
+ getTags(): readonly Tag[];
388
+ getTypeParametersArity(): number;
389
+ isMethodTypeInvokeMethod(): boolean;
390
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
391
+ }
392
+ export declare class TsIteratorMethodEntity implements TypeMethodEntity {
393
+ private readonly _tsctx;
394
+ private readonly _symbol;
395
+ private readonly _containingType;
396
+ readonly kind = EntityKind.Method;
397
+ readonly subkind = "type";
398
+ private readonly _returnType;
399
+ private get firstDeclaration();
400
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _containingType: TypeEntityWithMembers);
401
+ getName(): Name;
402
+ getTypeParameters(): readonly TypeParameterEntity[];
403
+ getValueParameters(): readonly ParameterVariableEntity[];
404
+ getReturnType(): types.Type;
405
+ getDefinition(): MethodEntityDefinition;
406
+ getContainer(): TypeMemberEntityContainer;
407
+ isStatic(): boolean;
408
+ isRedefinable(): boolean;
409
+ isRedefined(): boolean;
410
+ isAbstract(): boolean;
411
+ isModifyingOwningPlainObject(): boolean;
412
+ isAsync(): boolean;
413
+ isHidden(): EntityHidingLevel | undefined;
414
+ getTags(): readonly Tag[];
415
+ getTypeParametersArity(): number;
416
+ isMethodTypeInvokeMethod(): boolean;
417
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
418
+ }
419
+ export declare class TsParameterEntity implements ParameterVariableEntity {
420
+ private readonly _tsctx;
421
+ private readonly _symbol;
422
+ private readonly _containingEntity;
423
+ readonly kind = EntityKind.Variable;
424
+ readonly subkind = "parameter";
425
+ private readonly _type;
426
+ private get declaration();
427
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _containingEntity: EntityContainingValueParameter);
428
+ getName(): Name;
429
+ getType(): types.Type;
430
+ getDefinition(): VariableEntityDefinition;
431
+ getGetter(): GetterEntity | undefined;
432
+ getSetter(): SetterEntity | undefined;
433
+ isConstant(): boolean;
434
+ isHidden(): EntityHidingLevel | undefined;
435
+ isSpecial(): SpecialVariableEntityInfo | undefined;
436
+ getTags(): readonly Tag[];
437
+ getContainer(): ParameterVariableEntityContainer;
438
+ isOptional(): boolean;
439
+ isVariadic(): boolean;
440
+ }
441
+ export declare class TsTypeParameterEntity implements TypeParameterEntity {
442
+ private readonly _tsctx;
443
+ private readonly _symbol;
444
+ private readonly _containingEntity;
445
+ readonly kind = EntityKind.TypeParameter;
446
+ private readonly _constraint;
447
+ private readonly _defaultType;
448
+ get declaration(): ts.TypeParameterDeclaration | undefined;
449
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _containingEntity: EntityContainingTypeParameter);
450
+ getName(): Name;
451
+ getConstraint(): TypeParameterConstraint;
452
+ getDefaultType(): types.Type | undefined;
453
+ getDefinition(): TypeParameterEntityDefinition;
454
+ getArity(): number;
455
+ getTypeParameters(): readonly TypeParameterEntity[];
456
+ getContainingEntity(): EntityContainingTypeParameter;
457
+ isHidden(): EntityHidingLevel | undefined;
458
+ }
459
+ export declare class TsIndexSignatureEntity implements IndexerEntity {
460
+ private readonly _tsctx;
461
+ private readonly _symbol;
462
+ private readonly _declaration;
463
+ private readonly _containingType;
464
+ private readonly _forceStatic;
465
+ readonly kind = EntityKind.Indexer;
466
+ private readonly _valueParameters;
467
+ private readonly _type;
468
+ private readonly _getter;
469
+ private readonly _setter;
470
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _declaration: ts.IndexSignatureDeclaration, _containingType: TypeEntityWithMembers, _forceStatic: boolean);
471
+ getValueParameters(): readonly ParameterVariableEntity[];
472
+ getType(): types.Type;
473
+ getGetter(): GetterEntity | undefined;
474
+ getSetter(): SetterEntity | undefined;
475
+ getDefinition(): IndexerEntityDefinition;
476
+ getContainer(): TypeMemberEntityContainer;
477
+ isStatic(): boolean;
478
+ isHidden(): EntityHidingLevel | undefined;
479
+ isAbstract(): boolean;
480
+ getTags(): readonly Tag[];
481
+ }
482
+ export declare class TsConstructorEntity implements ConstructorEntity {
483
+ private readonly _tsctx;
484
+ private readonly _symbol;
485
+ private readonly _declaration;
486
+ private readonly _containingType;
487
+ readonly kind = EntityKind.Constructor;
488
+ private readonly _valueParameters;
489
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _declaration: ts.ConstructorDeclaration | ts.ConstructSignatureDeclaration, _containingType: TypeEntityWithMembers);
490
+ getValueParameters(): readonly ParameterVariableEntity[];
491
+ getDefinition(): ConstructorEntityDefinition;
492
+ getContainer(): TypeMemberEntityContainer;
493
+ isDefault(): DefaultConstructorEntityInfo | undefined;
494
+ isHidden(): EntityHidingLevel | undefined;
495
+ isAbstract(): boolean;
496
+ getTags(): readonly Tag[];
497
+ }
498
+ export declare class TsSignatureBasedDefaultConstructorEntity implements ConstructorEntity {
499
+ private readonly _tsctx;
500
+ private readonly _signature;
501
+ private readonly _containingType;
502
+ readonly kind = EntityKind.Constructor;
503
+ private readonly _valueParameters;
504
+ constructor(_tsctx: TsInteropContext, _signature: ts.Signature, _containingType: TypeEntityWithMembers);
505
+ getValueParameters(): readonly ParameterVariableEntity[];
506
+ getDefinition(): ConstructorEntityDefinition;
507
+ getContainer(): TypeMemberEntityContainer;
508
+ isDefault(): DefaultConstructorEntityInfo | undefined;
509
+ isHidden(): EntityHidingLevel | undefined;
510
+ isAbstract(): boolean;
511
+ getTags(): readonly Tag[];
512
+ }
513
+ export declare class TsEnumEntity implements PackageVariantTypeEntity {
514
+ private readonly _tsctx;
515
+ private readonly _symbol;
516
+ private readonly _isDefaultExport;
517
+ private readonly _containingPackage;
518
+ readonly kind = EntityKind.VariantType;
519
+ readonly subkind = "package";
520
+ private readonly _variants;
521
+ private readonly _members;
522
+ private readonly _underlyingType;
523
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _containingPackage: PackageEntity);
524
+ getNaming(): EntityNaming;
525
+ getName(): Name;
526
+ getContainingPackage(): PackageEntity;
527
+ getVariants(): OriginalVariants;
528
+ getMembers(): OriginalTypeEntityMembers;
529
+ getUnderlyingType(): types.Type;
530
+ getDefinition(): VariantTypeEntityDefinition;
531
+ getArity(): number;
532
+ getTypeParameters(): readonly TypeParameterEntity[];
533
+ isHidden(): EntityHidingLevel | undefined;
534
+ getTags(): readonly Tag[];
535
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
536
+ }
537
+ export declare class TsEnumMemberEntity implements VariantEntity {
538
+ private readonly _tsctx;
539
+ private readonly _symbol;
540
+ private readonly _variantTypeEntity;
541
+ readonly kind = EntityKind.Variant;
542
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _variantTypeEntity: VariantTypeEntity);
543
+ getName(): Name;
544
+ getDefinition(): VariantEntityDefinition;
545
+ getContainingEntity(): VariantTypeEntity;
546
+ isHidden(): EntityHidingLevel | undefined;
547
+ getTags(): readonly Tag[];
548
+ }
549
+ export declare class TsTypeAliasEntity implements AliasTypeEntity {
550
+ private readonly _tsctx;
551
+ private readonly _symbol;
552
+ private readonly _isDefaultExport;
553
+ private readonly _containingPackage;
554
+ readonly kind = EntityKind.AliasType;
555
+ private readonly _aliasedType;
556
+ private readonly _typeParameters;
557
+ private get declaration();
558
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _isDefaultExport: boolean, _containingPackage: PackageEntity);
559
+ getName(): Name;
560
+ getContainingPackage(): PackageEntity;
561
+ getAliasedType(): AliasedType;
562
+ getTypeParameters(): readonly TypeParameterEntity[];
563
+ getDefinition(): AliasTypeEntityDefinition;
564
+ getMembers(): OriginalTypeEntityMembers;
565
+ getArity(): number;
566
+ isHidden(): EntityHidingLevel | undefined;
567
+ getTags(): readonly Tag[];
568
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
569
+ }
570
+ export declare class TsAnonymousFunctionTypeEntity implements AnonymousMethodTypeEntity {
571
+ private readonly _tsctx;
572
+ private readonly _symbol;
573
+ private readonly _declaration;
574
+ private readonly _containingPackage;
575
+ readonly kind = EntityKind.MethodType;
576
+ readonly subkind = "anonymous";
577
+ private readonly _valueParameters;
578
+ private readonly _returnType;
579
+ private readonly _members;
580
+ constructor(_tsctx: TsInteropContext, _symbol: ts.Symbol, _declaration: ts.FunctionTypeNode, _containingPackage: PackageEntity);
581
+ getNaming(): EntityNaming;
582
+ getTypeParameters(): readonly TypeParameterEntity[];
583
+ getValueParameters(): readonly ParameterVariableEntity[];
584
+ getReturnType(): types.Type;
585
+ getMembers(): OriginalTypeEntityMembers;
586
+ getDefinition(): MethodTypeEntityDefinition;
587
+ isAsync(): boolean;
588
+ getArity(): number;
589
+ isHidden(): EntityHidingLevel | undefined;
590
+ getTags(): readonly Tag[];
591
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
592
+ getContainingPackage(): PackageEntity;
593
+ }
594
+ /**
595
+ * Представляет объявления следующего вида:
596
+ *
597
+ * ```
598
+ * interface MyType { (): number } // интерфейс с единственным членом - сигнатурой вызова
599
+ *
600
+ * type MyType = () => number // псевдоним функционального типа
601
+ *
602
+ * type MyType = { (): number } // псевдоним типа с единственным членом - сигнатурой вызова
603
+ * ```
604
+ */
605
+ export declare class TsNamedFunctionTypeEntity implements PackageMethodTypeEntity {
606
+ private readonly _tsctx;
607
+ private readonly _signatureSymbol;
608
+ private readonly _signatureDeclaration;
609
+ private readonly _owningNamedSymbol;
610
+ private readonly _isDefaultExport;
611
+ private readonly _owningDeclarationWithTypeParameters;
612
+ private readonly _containingPackage;
613
+ private readonly _forceHiddenInPackage;
614
+ readonly kind = EntityKind.MethodType;
615
+ readonly subkind = "package";
616
+ private readonly _typeParameters;
617
+ private readonly _valueParameters;
618
+ private readonly _members;
619
+ private readonly _returnType;
620
+ constructor(_tsctx: TsInteropContext, _signatureSymbol: ts.Symbol, _signatureDeclaration: ts.CallSignatureDeclaration | ts.FunctionTypeNode, _owningNamedSymbol: ts.Symbol, _isDefaultExport: boolean, _owningDeclarationWithTypeParameters: ts.DeclarationWithTypeParameterChildren, _containingPackage: PackageEntity, _forceHiddenInPackage: boolean);
621
+ getNaming(): EntityNaming;
622
+ getName(): Name;
623
+ getContainingPackage(): PackageEntity;
624
+ getTypeParameters(): readonly TypeParameterEntity[];
625
+ getValueParameters(): readonly ParameterVariableEntity[];
626
+ getReturnType(): types.Type;
627
+ getMembers(): OriginalTypeEntityMembers;
628
+ getDefinition(): MethodTypeEntityDefinition;
629
+ isAsync(): boolean;
630
+ getArity(): number;
631
+ isHidden(): EntityHidingLevel | undefined;
632
+ getTags(): readonly Tag[];
633
+ getSubstitutionApplicationMode(): SubstitutionApplicationMode;
634
+ }