import { MemberType } from './member-type'; import { Property, PropertySpec } from './property'; import { IScope } from './scope'; import { Type } from './type'; import { DeclarationKind, TypeSpec } from './type-declaration'; import { MethodSpec } from './type-member'; export interface InterfaceSpec extends TypeSpec { properties?: PropertySpec[]; methods?: MethodSpec[]; extends?: Type[]; } export declare class InterfaceType extends MemberType { scope: IScope; readonly spec: InterfaceSpec; readonly kind = DeclarationKind.Interface; /** * List the modifiers of the interface */ get modifiers(): Array; constructor(scope: IScope, spec: InterfaceSpec); get extends(): Type[]; /** * Update some of the fields of the interface spec, except fields that are immutable or managed elsewhere. * * Members are managed via specific method calls. */ update, 'properties' | 'methods' | 'name'>>(updates: A): void; /** * Adds a property to the interface * * Interface properties must be public. */ addProperty(spec: Omit): Property; }