import type { AdvanceResult, CompleteDispatchOutcome, CreateExecutionOptions } from './advance-result.js'; import type { StepCompletionPayload } from './completion-payload.js'; import type { StepDispatcher } from './dispatch.js'; import type { ExecutionStore, RuntimeAnalytics, RuntimeObserver } from './stores.js'; export declare const DEFAULT_MAX_ATTEMPTS_PER_STEP = 3; export declare const DEFAULT_DISPATCH_TIMEOUT_MS: number; export declare class AgentRunnerCore { private readonly deps; private readonly obs; private readonly stepStartedAt; constructor(deps: { store: ExecutionStore; dispatcher: StepDispatcher; observer?: RuntimeObserver; analytics?: RuntimeAnalytics; }); createExecution(workflowName: string, entry: string, input: unknown, opts: CreateExecutionOptions): Promise; resetForResume(executionId: string, opts?: { fromStepName?: string; fromStepInput?: unknown; }): Promise; advance(executionId: string, maxAttemptsPerStep?: number): Promise; completeDispatchedStep(payload: StepCompletionPayload, parsed: { executionId: string; stepOrder: number; attempt: number; }, maxAttemptsPerStep?: number): Promise; expireDispatchedStep(executionId: string, maxAttemptsPerStep?: number): Promise; expirePausedExecution(executionId: string): Promise; private advanceBody; private recordTerminalOutcome; private advanceRunning; private dispatchOneStep; private handleRetryOrCap; private applyDirective; private recordCasLoss; private openRunTransaction; private openObserverStepTransaction; private completeObserverStepTransaction; private completeRunTransaction; private trackStepStart; private trackStepFinish; }