import { Entity, EntityId } from '@pocket-architect/core'; import { SchemaObject } from "./SchemaObject"; export declare enum AttributeType { Id = "id", String = "string", Number = "number", Boolean = "boolean", Date = "date", Enum = "enum" } export interface IAttribute { id?: string; name: string; type: AttributeType; enum?: string[]; primaryKey?: boolean; system?: boolean; transient?: boolean; readonly?: boolean; mandatory?: boolean; description?: string; columnName?: string; } export declare class AttributeId extends EntityId { readonly isAttribute = true; } export declare class Attribute extends Entity { protected _layer: SchemaObject; static create(props: IAttribute, layer: SchemaObject): Attribute; get name(): string; private set name(value); get columnName(): string; private set columnName(value); get type(): string; get mandatory(): boolean; get system(): boolean; get description(): string; get enum(): string[]; get jsType(): string; get enumName(): string; get layer(): SchemaObject; updateProps(props: IAttribute): void; toJSON(): IAttribute; }