import { EntitySubscriberInterface, InsertEvent, UpdateEvent } from 'typeorm'; import { IBaseEntity } from './base.entity.interface'; export declare class BaseEntity implements IBaseEntity { id: number; createdAt: Date; updatedAt: Date; } export declare class BaseEntitySubscriber implements EntitySubscriberInterface { listenTo(): typeof BaseEntity; beforeInsert(event: InsertEvent): void; beforeUpdate(event: UpdateEvent): void | Promise; }