import { Guid } from '@cashfarm/lang'; import { Identity } from './identity'; export declare const IEntity: symbol; export interface IEntity { readonly id: TId; } /** * Abstract Base Class for Entities * * @export * @abstract * @class Entity * @extends {IEntity} * @template TId The type of this entities identity. */ export declare abstract class Entity | Guid> implements IEntity { protected _id: TId; /** * Persistent identity value for the Entity * * @readonly * @type {TId} */ readonly id: TId; constructor(id?: TId); }