import { Mapping } from 'ng2-rest/src'; export interface IBASE_ENTITY extends BASE_ENTITY { } export declare function Entity(options?: { className?: string; defaultModelValues?: Mapping.ModelValue; defaultModelMapping?: Mapping.Mapping; /** * default unique property is "id" * for your entity it may be something else */ uniqueKeyProp?: (keyof T); defaultModelMappingDeep?: { [lodashPathes: string]: string | [string]; }; createTable?: boolean; }): (target: any) => void; export declare abstract class BASE_ENTITY { /** * reserver property for uniq identifier * Note: if id is not uniq.. maybe create getter for id ? */ abstract id?: number | string; /** * here will be injected Firedev controller instance for entity * for easy creation of intuitive api */ ctrl?: any; /** * here will be injected Firedev controller instance for entity * for easy creation of intuitive api */ static ctrl?: any; }