import * as ts from 'typescript'; import { AnonymousType, MappedType } from '../ts-internal'; /** * Check whether a given type is an index type (i.e., `keyof Foo`) * * @param type type to check * @public */ export declare function isIndexType(type: ts.Type): type is ts.IndexType; /** * Check whether a given type is an indexed access type (i.e., `Foo['bar']`) * * @param type type to check * @public */ export declare function isIndexedAccessType(type: ts.Type): type is ts.IndexedAccessType; /** * Check whether a given type is a primitive type * * @param type type to check * @public */ export declare function isPrimitiveType(type: ts.Type): boolean; /** * Check whether a given type is a conditional type * * @param type type to check * @public */ export declare function isConditionalType(type: ts.Type): type is ts.ConditionalType; /** * Check whether a Type is an ObjectType * * @param type Type * @public */ export declare function isObjectType(type: ts.Type): type is ts.ObjectType; /** * Check whether a given type describes an interface (or class) * * * @param type type to check * @public */ export declare function isInterfaceType(type: ts.Type): type is ts.InterfaceType; /** * Check whether a given type is a ts.ReferenceType * * @param type type to check * @public */ export declare function isObjectReferenceType(type: ts.Type): type is ts.TypeReference; /** * Check whether a given type describes a tuple * * @param type type to check * @public */ export declare function isTupleType(type: ts.Type): type is ts.TupleType; /** * Check whether a given type is anonymous * * @param type type to check * @public */ export declare function isAnonymousType(type: ts.Type): type is AnonymousType; /** * Check whether a given type is a mapped type * * @param type type to check * @private */ export declare function isMappedType(type: ts.Type): type is MappedType; /** * Check whether a given type has degraded to an `any` due to an error of some sort * * @param type type to check * @public */ export declare function isErroredType(type: ts.Type): boolean; //# sourceMappingURL=type.d.ts.map