import { type ObjectJsonSchema, type OperationCatalogItem, type OperationExecutionPolicy, type OperationSafety } from "@listmonk-ops/operations"; import type { CallToolRequest } from "./types/mcp.js"; export declare const MCP_OPERATION_CONFIRMATION_ARGUMENT = "confirm"; export type McpOperationExecution = Readonly<{ operation: OperationCatalogItem; policy: OperationExecutionPolicy; confirmed: boolean; dryRunProvided: boolean; dryRunRequested: boolean; dryRun: boolean; request: CallToolRequest; }>; export declare class McpOperationDryRunUnsupportedError extends Error { readonly operationId: string; constructor(operationId: string); } /** * Adds the MCP-only confirmation control to destructive operation schemas * without changing the transport-neutral operation input contract. */ export declare function withMcpOperationConfirmationInputSchema(inputSchema: ObjectJsonSchema, safety: OperationSafety): ObjectJsonSchema; /** * Resolves shared-operation execution metadata for an MCP request. Legacy * transport-only tools deliberately return undefined until they are migrated * into the shared operation registry. */ export declare function getMcpOperationExecution(request: CallToolRequest): McpOperationExecution | undefined; export declare function assertMcpOperationDryRun(execution: McpOperationExecution): void; //# sourceMappingURL=operation-execution.d.ts.map