import { TxRecordInfoSave, TxRecordPersistAdapter } from './tx-record-persist-adapter'; import { TxRecordIndexSave, TxRecordRead } from './tx-record-persist-adapter'; import { TxJobExecutionId } from './tx-job-execution-id'; export declare class TxRecordPersistMemory implements TxRecordPersistAdapter { private _exct; private _jobs; constructor(); /** * Insert one execution document into 'execute' collection. * * _info: may include one of tasks or reply or both. * * @param {TxRecordIndexSave} index * @param {TxRecordInfoSave} info * @returns {Promise} */ insert(index: TxRecordIndexSave, info: TxRecordInfoSave): void; update(index: TxRecordIndexSave, info: TxRecordInfoSave): void; delete(executionId: TxJobExecutionId): number; /** * If executionId.sequence > 0 then get a specific execute (according to its sequence) * if executionId.sequence == 0 then get all steps of one job execute (all executions of a specific job run). * * @param {TxJobExecutionId} executionId * @returns {Promise} */ asking(executionId: TxJobExecutionId): Promise; private setDocument; toExecutionId(index: TxRecordIndexSave): TxJobExecutionId; toIndicator(id: TxJobExecutionId): string; toIndicatorUuid(id: string): string; toIndicatorSequnce(id: string): string; private readonly exct; private readonly jobs; getExecuteSize(): number; close(): void; }