import type { AgentManifest } from '@sapiom/agent'; export declare const EXECUTION_STATUS: { readonly RUNNING: "running"; readonly PAUSED: "paused"; readonly COMPLETED: "completed"; readonly FAILED: "failed"; readonly CANCELLED: "cancelled"; }; export type ExecutionStatus = (typeof EXECUTION_STATUS)[keyof typeof EXECUTION_STATUS]; export declare const STEP_STATUS: { readonly DISPATCHED: "dispatched"; readonly RUNNING: "running"; readonly SUCCEEDED: "succeeded"; readonly FAILED: "failed"; }; export type StepStatus = (typeof STEP_STATUS)[keyof typeof STEP_STATUS]; export interface ExecutionState { readonly id: string; readonly name: string; readonly status: ExecutionStatus; readonly version: number; readonly manifest: AgentManifest; readonly input: unknown; readonly currentStep: string | null; readonly currentStepInput: unknown; readonly currentStepAttempt: number; readonly sharedState: Record; readonly pausedSignalName: string | null; readonly pausedSignalCorrelationId: string | null; readonly pausedUntil: Date | null; readonly dispatchedStepRowId: string | null; readonly dispatchDeadlineAt: Date | null; readonly output: unknown; readonly error: unknown; readonly organizationId: string | null; readonly tenantId: string | null; readonly definitionId?: string | null; readonly buildRunId?: string | null; readonly scopedApiKeyId?: string | null; } export interface StepRow { readonly id: string; readonly stepName: string; readonly stepOrder: number; readonly attempt: number; readonly status: StepStatus; }