import { DataSource, EntityManager, FindManyOptions, ObjectLiteral, Repository } from 'typeorm'; import { types } from "../../../ledger-sdk/src"; type ObjectLiteralWithHandle = ObjectLiteral & { handle: types.LedgerHandle; }; export declare class BaseService { protected readonly EntityClass: new () => T; repository: Repository; constructor(EntityClass: new () => T, dataSource: DataSource); create(entity: T, entityManager?: EntityManager): Promise; exists(handle: types.LedgerHandle, entityManager?: EntityManager): Promise; findOne(handle: types.LedgerHandle, entityManager?: EntityManager): Promise; findWhere(where: FindManyOptions, entityManager?: EntityManager): Promise; queryBuilder(entityManager?: EntityManager): Promise>; } export {};