import { Documented } from './documented'; import { IScope } from './scope'; import { ThingSymbol } from './symbol'; import { Type } from './type'; /** * Kinds of declaration. */ export declare enum DeclarationKind { Class = "class", Enum = "enum", Struct = "struct", Interface = "interface", Function = "function", MonkeyPatch = "monkey-patch" } export interface Exportable { export?: boolean; } export interface Exported { exported?: boolean; } export interface TypeParameterSpec { readonly name: string; readonly extendsType?: Type; } export declare class TypeParameter implements TypeParameterSpec { readonly scope: TypeDeclaration; readonly name: string; readonly extendsType?: Type | undefined; constructor(scope: TypeDeclaration, name: string, extendsType?: Type | undefined); asType(): Type; } export interface TypeSpec extends Documented, Exportable { /** * The simple name of the type (MyClass). * * @minLength 1 */ name: string; /** * The generic type parameters of the type. */ typeParameters?: TypeParameterSpec[]; } /** * An abstract jsii type */ export declare abstract class TypeDeclaration implements Documented, Exported { readonly scope: IScope; readonly spec: TypeSpec; /** * The simple name of the type (MyClass). */ get name(): string; /** * The fully qualified name of the type (``.``) */ get fqn(): string; abstract kind: DeclarationKind; /** * Documentation for this type */ get docs(): import("./documented").DocsSpec | undefined; /** * Whether this type is being exported from its scope */ get exported(): boolean; /** * The generic type parameters of the type */ get typeParameters(): ReadonlyArray | undefined; readonly type: Type; readonly symbol: ThingSymbol; constructor(scope: IScope, spec: TypeSpec); /** * Add a type parameter */ addTypeParameter(p: TypeParameterSpec): TypeParameter; /** * Simple Human readable string representation of the type. */ toString(): string; }