import { a5 as VariableReference, ac as StepResult, S as Step, W as Workflow, e as WorkflowContext, M as Mastra, a0 as StepAction, ae as WorkflowRunResult } from '../base-hRgvGkC2.js'; export { a7 as ActionContext, a6 as BaseCondition, ak as DependencyCheckOutput, ar as ExtractSchemaFromStep, au as ExtractSchemaType, as as ExtractStepResult, av as PathsToStringProps, ah as ResolverFunctionInput, ai as ResolverFunctionOutput, a4 as RetryConfig, aa as StepCondition, ab as StepConfig, a9 as StepDef, d as StepExecutionContext, a3 as StepGraph, aq as StepId, at as StepInputType, a2 as StepNode, al as StepResolverOutput, a1 as StepVariableType, ad as StepsRecord, aj as SubscriberFunctionOutput, a8 as WhenConditionReturnValue, an as WorkflowActionParams, ao as WorkflowActions, am as WorkflowActors, ag as WorkflowEvent, af as WorkflowLogMessage, p as WorkflowOptions, ax as WorkflowResumeResult, aw as WorkflowRunState, ap as WorkflowState, ay as createStep } from '../base-hRgvGkC2.js'; import { z } from 'zod'; import { L as Logger } from '../index-BXwGr3N7.js'; import 'ai'; import '../base-Dq_cxikD.js'; import '@opentelemetry/api'; import '@opentelemetry/sdk-trace-base'; import '../types-CwTG2XyQ.js'; import 'sift'; import 'json-schema'; import 'xstate'; import 'events'; import '../vector/index.js'; import '../vector/filter/index.js'; import 'stream'; import '../tts/index.js'; declare function isErrorEvent(stateEvent: any): stateEvent is { type: `xstate.error.actor.${string}`; error: Error; }; declare function isTransitionEvent(stateEvent: any): stateEvent is { type: `xstate.done.actor.${string}`; output?: unknown; }; declare function isVariableReference(value: any): value is VariableReference; declare function getStepResult(result?: StepResult): any; declare function getSuspendedPaths({ value, path, suspendedPaths, }: { value: string | Record; path: string; suspendedPaths: Set; }): void; declare function isFinalState(status: string): boolean; declare function isLimboState(status: string): boolean; declare function recursivelyCheckForFinalState({ value, suspendedPaths, path, }: { value: string | Record; suspendedPaths: Set; path: string; }): boolean; declare function getActivePathsAndStatus(value: Record): Array<{ stepPath: string[]; stepId: string; status: string; }>; declare function mergeChildValue(startStepId: string, parent: Record, child: Record): Record; declare const updateStepInHierarchy: (value: Record, targetStepId: string) => Record; declare function getResultActivePaths(state: { value: Record; context: { steps: Record; }; }): Map; declare function isWorkflow(step: Step | Workflow): step is Workflow; declare function resolveVariables[]>({ runId, logger, variables, context, }: { runId: string; logger: Logger; variables: Record>; context: WorkflowContext; }): Record; declare function workflowToStep[], TStepId extends string = any, TTriggerSchema extends z.ZodObject = any, TResultSchema extends z.ZodObject = any>(workflow: Workflow, { mastra }: { mastra?: Mastra; }): StepAction>, any>; export { Step, StepAction, StepResult, VariableReference, Workflow, WorkflowContext, WorkflowRunResult, getActivePathsAndStatus, getResultActivePaths, getStepResult, getSuspendedPaths, isErrorEvent, isFinalState, isLimboState, isTransitionEvent, isVariableReference, isWorkflow, mergeChildValue, recursivelyCheckForFinalState, resolveVariables, updateStepInHierarchy, workflowToStep };