import type { z } from 'zod';
import type { Engine } from '../../core/engine.ts';
import type { FaultCode } from '../../core/fault-code.ts';
import type { OperationDefinition } from '../operation-catalog.ts';
import type { OperationFault } from '../operation-fault.ts';
type SingleWorkflowControlInput = {
readonly workflowId: string;
};
type SingleWorkflowControlErrorMapper = (context: {
readonly error: unknown;
readonly message: string;
readonly workflowId: string;
}) => OperationFault | undefined;
type SingleWorkflowControlOperationConfiguration = {
readonly name: string;
readonly summary: string;
/** Optional longer-form prose surfaced in discovery documents and the CLI. */
readonly description?: string;
readonly tags: ReadonlyArray;
/** Whether this control operation irreversibly mutates state. Required. */
readonly destructive: boolean;
readonly inputSchema: z.ZodType;
readonly outputSchema: z.ZodType