import { Persistence } from './persistence'; import { WorkflowState } from '../workflow-state'; import { MessageWorkflowMapping } from '../message-workflow-mapping'; import { Message, MessageAttributes } from '@node-ts/bus-messages'; import { ClassConstructor, CoreDependencies } from '../../util'; /** * A non-durable in-memory persistence for storage and retrieval of workflow state. Before using this, * be warned that all workflow state will not survive a process restart or application shut down. As * such this should only be used for testing, prototyping or handling unimportant workflows. */ export declare class InMemoryPersistence implements Persistence { private workflowState; private logger; prepare(coreDependencies: CoreDependencies): void; initializeWorkflow(workflowStateConstructor: ClassConstructor, _: MessageWorkflowMapping[]): Promise; getWorkflowState(workflowStateConstructor: ClassConstructor, messageMap: MessageWorkflowMapping, message: MessageType, attributes: MessageAttributes, includeCompleted?: boolean | undefined): Promise; saveWorkflowState(workflowState: WorkflowStateType): Promise; length(workflowStateConstructor: ClassConstructor): number; }