import { BpmsEngine } from '../BpmsEngine'; import { HistoryRepository } from './HistoryRepository'; import { QueryOptions, QueryResult, ScalarOptions, IdExpression, FilterExpression } from '../data/Repository'; import { BpmsService } from '../BpmsService'; export interface HistoryServiceOptions { historyRepository?: HistoryRepository; name: string; } export interface BpmsHistoryEntry { id?: string; createdAt?: string; source: string; eventId: number; message: string; data?: Record; tenantId?: string; userId?: string; type: 'info' | 'warn' | 'error' | 'fatal' | 'debug'; } export declare class HistoryService implements BpmsService { private bpmsEngine?; private historyRepository; private id; private options; constructor(bpmsEngine?: BpmsEngine | undefined, options?: HistoryServiceOptions); static createService(options?: HistoryServiceOptions): HistoryService; static createService(bpmsEngine?: BpmsEngine, options?: HistoryServiceOptions): HistoryService; get HistoryRepository(): HistoryRepository; get Id(): string; get Name(): string; get BpmsEngine(): BpmsEngine | undefined; create(entity: T): Promise; remove(id: IdExpression): Promise; find(id: IdExpression): Promise; find(filter: FilterExpression): Promise; findAll(filter?: FilterExpression): Promise; clear(): Promise; list(filter?: FilterExpression): Promise; count(filter?: FilterExpression): Promise; query(options: QueryOptions): Promise>; scalar(options: ScalarOptions): Promise; }