import { ProcessAction } from '../actions'; export declare const enum ExecutionState { COMPLETED = "COMPLETED", ERROR_SEMANTIC = "ERROR-SEMANTIC", ERROR_TECHNICAL = "ERROR-TECHNICAL", ERROR_UNKNOWN = "ERROR-UNKNOWN", ABORTED = "ABORTED", TERMINATED = "TERMINATED", FAILED = "FAILED", SKIPPED = "SKIPPED" } export declare type LogState = { flowElementId: string; tokenId: string; executionState: ExecutionState | string; startTime?: number; endTime?: number; errorMessage?: string; variableChanges?: { [variableName: string]: { oldValue?: any; newValue: any; changedTime: number; }[]; }; [key: string]: any; }[]; export declare const DEFAULT_LOG_STATE: LogState; export declare function logReducer(state: LogState | undefined, action: ProcessAction): LogState; /** * Will use the given log to decide if a specific execution of a flowElement has already ended * * @param tokenId the token that triggered the execution * @param flowElementId the element that was executed * @param startTime the time at which this specific execution started * @param log the log state to evaluate * @returns information if the specific execution has already ended */ export declare function isExecutionEnded(tokenId: string, flowElementId: string, startTime: Number | undefined, log: LogState): boolean; //# sourceMappingURL=log.d.ts.map