import { WorkflowContext } from './context.types'; export type ExtractOutput = TOutputs[TState]; export interface StateActions, TOutputs extends Record, TCurrentState extends keyof TOutputs> { next(data?: { data?: Partial; output?: ExtractOutput; }): void; goto(state: TTargetState, data?: { data?: Partial; output?: ExtractOutput; }): void; suspend(data?: { waitingFor?: string; data?: Partial; output?: ExtractOutput; }): void; complete(data?: { data?: Partial; output?: ExtractOutput; }): void; } export interface OutputsAccessor> { get(state: TState): ExtractOutput | undefined; require(state: TState): ExtractOutput; has(state: TState): boolean; getAll(): Partial; } export interface IState = Record, TOutputs extends Record = Record, TCurrentState extends keyof TOutputs = keyof TOutputs> { execute(context: WorkflowContext, actions: StateActions): Promise | void; } export interface StateMetadata { stateValue: TState; stateName: string; states: TState[]; timeout?: number; retry?: RetryConfig; concurrency?: StateConcurrencyConfig; } export interface RetryConfig { maxAttempts: number; strategy?: 'fixed' | 'exponential' | 'linear'; initialDelay?: number; maxDelay?: number; multiplier?: number; } export interface StateConcurrencyConfig { unlockAfter?: boolean; } //# sourceMappingURL=state.types.d.ts.map