import type { ListmonkClient } from "@listmonk-ops/openapi"; import { type TransactionalIdempotencyStore } from "@listmonk-ops/operations"; import type { CallToolRequest, CallToolResult, MCPTool } from "../types/mcp.js"; export declare const transactionalTools: MCPTool[]; export declare function isTransactionalToolName(name: string): boolean; /** * The MCP server's resolved Listmonk target identity, threaded in from the * server config so idempotency records are namespaced by the instance the * server actually targets (honoring --listmonk-url / --listmonk-username * overrides and programmatic config), not just the ambient environment. */ export type TransactionalHandlerTarget = { baseUrl?: string; username?: string; idempotencyStore?: TransactionalIdempotencyStore; }; /** * Extended handler signature that carries the resolved Listmonk target. * Other resource handlers stay on the 2-arg `HandlerFunction` shape; only * the transactional handler needs the target because only it namespaces * idempotency records by instance. */ export type TransactionalHandlerFunction = (request: CallToolRequest, client: ListmonkClient, target?: TransactionalHandlerTarget) => Promise; export declare const handleTransactionalTools: TransactionalHandlerFunction; //# sourceMappingURL=transactional.d.ts.map