import { ActionSpec } from "jm-castle-ac-dc-types"; import { ControlContext } from "../ControlContext.mjs"; import { EngineContext } from "../EngineContext.mjs"; export declare type ControlEvent = "lapEnd" | "historyChange"; export declare type ControlPartRunResponse = { success: false; error: string; } | { success: true; error?: never; }; export interface ControlPart { run: (context: EngineContext, control: ControlContext) => Promise; runForAction?: (action: ActionSpec, context: EngineContext, control: ControlContext) => Promise; }