import type { PauseUntilSignalDirective, AgentManifest } from '@sapiom/agent'; export declare const ADVANCE_RESULT_KIND: { readonly RUNNING: "running"; readonly PAUSED: "paused"; readonly COMPLETED: "completed"; readonly FAILED: "failed"; readonly DISPATCHED: "dispatched"; }; export type AdvanceResultKind = (typeof ADVANCE_RESULT_KIND)[keyof typeof ADVANCE_RESULT_KIND]; export type AdvanceResult = { kind: typeof ADVANCE_RESULT_KIND.RUNNING; } | { kind: typeof ADVANCE_RESULT_KIND.PAUSED; directive: PauseUntilSignalDirective; } | { kind: typeof ADVANCE_RESULT_KIND.COMPLETED; output: unknown; } | { kind: typeof ADVANCE_RESULT_KIND.FAILED; error: unknown; } | { kind: typeof ADVANCE_RESULT_KIND.DISPATCHED; deadlineAt: Date | null; }; export interface CompleteDispatchOutcome { readonly applied: boolean; readonly result: AdvanceResult; } export interface CreateExecutionOptions { readonly organizationId?: string | null; readonly tenantId?: string | null; readonly idempotencyKey?: string; readonly manifest: AgentManifest; readonly definitionId?: string | null; readonly buildRunId?: string | null; readonly scopedApiKeyId?: string | null; }