import type { ComposedWorkflowInterceptor, WorkflowInterceptor } from './interceptor-interfaces.ts'; /** * Compose multiple workflow interceptors into a single interceptor chain. * * @example * ```ts * import { composeWorkflowInterceptors, type WorkflowInterceptor } from '@lostgradient/weft'; * * const tracing: WorkflowInterceptor = { * *activity(ctx, next) { * console.log('start', ctx.activityName); * const result = yield* next(ctx); * console.log('end', ctx.activityName); * return result; * }, * }; * const composed = composeWorkflowInterceptors([tracing]); * void composed; * ``` */ export declare function composeWorkflowInterceptors(interceptors: WorkflowInterceptor[]): ComposedWorkflowInterceptor;