import { Server } from '@modelcontextprotocol/sdk/server/index.js'; import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; import { Endpoint, HandlerFunction } from "./tools.js"; import { Tool } from '@modelcontextprotocol/sdk/types.js'; import { ClientOptions } from 'dodopayments'; import DodoPayments from 'dodopayments'; import { ClientCapabilities } from "./compat.js"; import { McpOptions } from "./options.js"; export { McpOptions } from "./options.js"; export { ClientType } from "./compat.js"; export { Filter } from "./tools.js"; export { ClientOptions } from 'dodopayments'; export { endpoints } from "./tools.js"; export declare const server: McpServer; /** * Initializes the provided MCP Server with the given tools and handlers. * If not provided, the default client, tools and handlers will be used. */ export declare function initMcpServer(params: { server: Server | McpServer; clientOptions: ClientOptions; mcpOptions: McpOptions; endpoints?: { tool: Tool; handler: HandlerFunction; }[]; }): void; export declare function init(params: { server: Server | McpServer; client?: DodoPayments; endpoints?: { tool: Tool; handler: HandlerFunction; }[]; capabilities?: Partial; }): void; /** * Selects the tools to include in the MCP Server based on the provided options. */ export declare function selectTools(endpoints: Endpoint[], options: McpOptions): Endpoint[]; /** * Runs the provided handler with the given client and arguments. */ export declare function executeHandler(tool: Tool, handler: HandlerFunction, client: DodoPayments, args: Record | undefined, compatibilityOptions?: Partial): Promise; export declare const readEnv: (env: string) => string | undefined; export declare const readEnvOrError: (env: string) => string; //# sourceMappingURL=server.d.ts.map