import { BpmsEngine } from '../BpmsEngine'; import { TenantRepository } from './TenantRepository'; import { QueryOptions, QueryResult, ScalarOptions, FilterExpression } from '../data/Repository'; import { BpmsService } from '../BpmsService'; export interface BpmsTenant { id: string; name: string; } export interface TenantServiceOptions { tenantRepository?: TenantRepository; name: string; } export declare class TenantService implements BpmsService { private bpmsEngine?; private tenantRepository; private id; private options; constructor(bpmsEngine?: BpmsEngine | undefined, options?: TenantServiceOptions); static createService(options?: TenantServiceOptions): TenantService; static createService(bpmsEngine?: BpmsEngine, options?: TenantServiceOptions): TenantService; get Id(): string; get Name(): string; get TenantRepository(): TenantRepository; get BpmsEngine(): BpmsEngine | undefined; clear(): Promise; create(entity: T): Promise; remove(entityId: string): Promise; find(entityId: string): Promise; list(filter: FilterExpression): Promise; count(filter: FilterExpression): Promise; query(options: QueryOptions): Promise>; scalar(options: ScalarOptions): Promise; }