import { Repository, Connection } from 'firedev-typeorm/src'; export declare class DbCrud { private entity; static from(connection: Connection, entityClass: Function): DbCrud; readonly repo: Repository; constructor(connection: Connection, entity: Function); getAll(): Promise<{ models: any; totalCount: number; }>; getBy(id: number | string): Promise<{ model: any; }>; update(item: T): Promise<{ model: any; }>; updateById(id: number | string, item: T): Promise<{ model: any; }>; bulkUpdate(items: T[]): Promise<{ models: any[]; }>; deleteById(id: number | string): Promise<{ model: any; }>; bulkDelete(ids: (number | string)[]): Promise<{ models: any[]; }>; create(item: T): Promise<{ model: Awaited; }>; bulkCreate(items: T[]): Promise<{ models: any[]; }>; }