import type { ExecutionIntent, ExecutionIntentGraph, SynthEvent } from "../types/index.js"; /** Result of executing a single intent */ export type IntentExecutionResult = { success: boolean; result?: unknown; error?: string; }; /** Descriptor returned by a versioning handler for branch operations */ export type VersioningBranchResult = { commit: string; }; /** Descriptor returned by a forge handler for pull request operations */ export type ForgePullRequestResult = { number: number; title: string; url?: string; }; /** Capability handler injected by the caller */ export type CapabilityHandler = (intent: ExecutionIntent) => Promise; /** Runtime options */ export type ExecutionRuntimeOptions = { handlers: Record; actor: string; transactionId: string; timestamp?: number; }; /** Runtime error indicating execution should halt */ export declare class ExecutionHaltedError extends Error { readonly intentId: string; readonly reason: string; constructor(intentId: string, reason: string); } /** * Execute an ExecutionIntentGraph. * * Returns all events that should be appended to the event log. * The caller is responsible for routing these events through the * ExecutionGate and persisting them. */ export declare function executeGraph(graph: ExecutionIntentGraph, options: ExecutionRuntimeOptions): Promise>>;