import type { Event, WorkflowRun } from '@workflow/world'; import type { CryptoKey } from './encryption.js'; import type { StepHydrationCache } from './step-hydration-cache.js'; export declare function runWorkflow(workflowCode: string, workflowRun: WorkflowRun, events: Event[], encryptionKey: CryptoKey | undefined, /** * Optional per-run cache for hydrated step return values, owned by the inline * replay loop so it survives across the loop's iterations (each of which * creates a fresh context). Memoizes the decrypt + devalue-parse of completed * step results to turn O(N²) replay hydration into O(N). Omitted by callers * that replay only once (then there is nothing to reuse). */ stepHydrationCache?: StepHydrationCache): Promise; //# sourceMappingURL=workflow.d.ts.map