/** * Build the initial in-memory {@link WorkflowState} and {@link Checkpoint} * for a fresh `start()` — split out of `start.ts`, which has no headroom * under the repository's 500-line implementation-file ceiling for this * logic inline. * * @module core/engine/lifecycle/start-state */ import type { Checkpoint, Duration, StartOptions, TimerEntry, WorkflowState } from '../../types.ts'; import { type WorkflowVersionTuple } from '../../workflow-version-tuple.ts'; import type { EngineInternals } from '../internals.ts'; import { type LifecycleCallbacks } from './shared.ts'; export declare function parseStartOptionDuration(_internals: EngineInternals, duration: Duration, fieldName: 'options.executionTimeout' | 'options.startAfter', _callbacks: LifecycleCallbacks): number; export declare function createInitialWorkflowState(internals: EngineInternals, workflowId: string, type: string, input: unknown, versionTuple: WorkflowVersionTuple, revision: string, options: StartOptions | undefined, tags: string[] | undefined, executionStateOwnerId: string | undefined, parentWorkflowId: string | undefined, parentWorkflowExecutionToken: string | undefined, delayedStartTimer: TimerEntry | undefined, callbacks: LifecycleCallbacks): WorkflowState; export declare function createInitialCheckpoint(internals: EngineInternals, workflowId: string, workflowVersion: string, options: StartOptions | undefined, workflowExecutionToken: string | undefined, _callbacks: LifecycleCallbacks): Checkpoint; export declare function applyRestartLineage(state: WorkflowState, displacedState: WorkflowState | null): void;