import { InterfaceSpec } from './interface'; import { MemberType } from './member-type'; import { Property, PropertySpec } from './property'; import { IScope } from './scope'; import { DeclarationKind, TypeDeclaration } from './type-declaration'; export interface StructSpec extends InterfaceSpec { } export declare class StructType extends MemberType { scope: IScope; readonly spec: StructSpec; /** * Assert that something is a struct, failing otherwise */ static assertStruct(x: TypeDeclaration): StructType; readonly kind = DeclarationKind.Struct; /** * List the modifiers of the interface */ get modifiers(): Array; constructor(scope: IScope, spec: StructSpec); get extends(): import("./type").Type[]; /** * Adds a property to the interface * * Struct members are always public and immutable. */ addProperty(spec: Omit): Property; }