import type { TransitionResolver } from './spi/types'; import type { HandlerContext, OnAfterHandler, OnBeforeHandler, OnErrorHandler, StatefulPipelineEntity, StateRepository } from './types'; declare class Pipeline, S, C extends HandlerContext> { private readonly transitionResolver; private readonly stateRepository; private readonly failedState?; private readonly onError; private readonly onBefore; private readonly onAfter; private readonly logger; constructor(transitionResolver: TransitionResolver, stateRepository: StateRepository, failedState?: S, onError?: OnErrorHandler, onBefore?: OnBeforeHandler, onAfter?: OnAfterHandler); handle(entity: T, ctx: C): Promise; private readonly getDefaultErrorHandler; } export { Pipeline };