/** * Contains types that are marked as internal within Typescript. * It's not clear why these are marked as internal where most others are not, * particularly MappedType. */ import * as ts from 'typescript'; export declare const enum TypeMapKind { Simple = 0, Array = 1, Function = 2, Composite = 3, Merged = 4 } export declare const enum InternalNodeFlags { PossiblyContainsDynamicImport = 2097152, PossiblyContainsImportMeta = 4194304, Ambient = 16777216, InWithStatement = 33554432, TypeCached = 134217728, Deprecated = 268435456 } export type TypeMapper = { kind: TypeMapKind.Simple; source: ts.Type; target: ts.Type; } | { kind: TypeMapKind.Array; sources: readonly ts.Type[]; targets: readonly ts.Type[] | undefined; } | { kind: TypeMapKind.Function; func: (t: ts.Type) => ts.Type; } | { kind: TypeMapKind.Composite | TypeMapKind.Merged; mapper1: TypeMapper; mapper2: TypeMapper; }; export interface AnonymousType extends ts.ObjectType { target?: AnonymousType; mapper?: TypeMapper; instantiations?: Map; } export interface MappedType extends AnonymousType { declaration: ts.MappedTypeNode; typeParameter?: ts.TypeParameter; constraintType?: ts.Type; nameType?: ts.Type; templateType?: ts.Type; modifiersType?: ts.Type; resolvedApparentType?: ts.Type; containsError?: boolean; } export declare enum TypeReferenceSerializationKind { Unknown = 0, TypeWithConstructSignatureAndValue = 1, VoidNullableOrNeverType = 2, NumberLikeType = 3, BigIntLikeType = 4, StringLikeType = 5, BooleanType = 6, ArrayLikeType = 7, ESSymbolType = 8, Promise = 9, TypeWithCallSignature = 10, ObjectType = 11 } //# sourceMappingURL=ts-internal-types.d.ts.map