import { Schema } from "./Schema"; import { SchemaObject, SchemaObjectType } from './SchemaObject'; import { ValueObject, IValueObject } from './ValueObject'; import { Repository } from "./Repository"; import { Service } from "./Service"; import { Method, IMethod } from "./Method"; export interface IEntity extends IValueObject { methods?: IMethod[]; } export declare class Entity extends ValueObject { protected _repository: Repository; protected _service: Service; protected _methods: Method[]; static create(props: IEntity, schema: Schema): Entity; set domain(domain: SchemaObject); set boundedContext(boundedContext: SchemaObject); get repository(): Repository; get service(): Service; get type(): SchemaObjectType; get methods(): Method[]; toJSON(): IEntity; }