import { BaseCRUD } from '../crud/base-crud-model'; import { Models } from '../models'; export declare function Controller(options?: { className?: string; /** * typeorm realtime subscribtion // TODO disabled for now, does not make sense ?s */ /** * Entity required fro CRUD functions */ entity?: Function; /** * override default path for controller api */ path?: string; autoinit?: boolean; auth?: Models.AuthCallBack; }): (target: Function) => any; export interface BASE_CONTROLLER_INIT { initExampleDbData?: (isWoker?: boolean) => Promise; } export declare abstract class BASE_CONTROLLER extends BaseCRUD implements BASE_CONTROLLER_INIT { initExampleDbData(isWorker?: boolean): Promise; }