import type { AwaitChildWorkflowOptions, ChildWorkflowHandle, ChildWorkflowOptions, ChildWorkflowTarget, WorkflowMapOptions, WorkflowPipeStage, WorkflowReduceInput, WorkflowReduceOptions } from '../types.ts'; import type { Context } from './index.ts'; import type { ContextInternals } from './internals.ts'; import type { ContextOperationRequest } from './operation-request.ts'; export declare function normalizePipeStage(internals: ContextInternals, stage: WorkflowPipeStage | ChildWorkflowTarget): { workflowType: string; options: AwaitChildWorkflowOptions | undefined; }; export declare function resolveChildWorkflowTarget(internals: ContextInternals, target: ChildWorkflowTarget): string; export declare function resolveMapConcurrency(totalItems: number, requestedConcurrency: number | undefined): number; export declare function createCompositionToken(internals: ContextInternals, kind: 'map' | 'pipe' | 'reduce'): string; export declare function createCompositionChildWorkflowOptions(internals: ContextInternals, token: string, index: number, options?: AwaitChildWorkflowOptions): AwaitChildWorkflowOptions; export declare function createReduceChildWorkflowOptions(internals: ContextInternals, token: string, index: number, options: WorkflowReduceOptions | undefined): AwaitChildWorkflowOptions; export declare function primeParallelOperations(operations: Generator[]): ContextOperationRequest[]; export declare function startChild(context: Context, internals: ContextInternals, workflowType: string, input: unknown, options?: ChildWorkflowOptions): Generator, unknown>; export declare function pipe(context: Context, internals: ContextInternals, stages: Array, input: unknown): Generator; export declare function map(context: Context, internals: ContextInternals, items: readonly TItem[], workflowType: ChildWorkflowTarget, options?: WorkflowMapOptions): Generator; export declare function reduce(context: Context, internals: ContextInternals, items: readonly TItem[], workflowType: ChildWorkflowTarget, TAccumulator>, initialValue: TAccumulator, options?: WorkflowReduceOptions): Generator;