import type { CreatePaymentPreferenceParams, GetPaymentParams, CreateRefundParams, SearchPaymentsParams } from "./schemas.js"; export declare function createMercadoPagoTools(accessToken: string): { schemas: ({ readonly name: "create_payment_preference"; readonly description: "Creates a Mercado Pago checkout payment preference (payment link). Returns init_point URL for redirecting buyers."; readonly parameters: { readonly type: "object"; readonly required: readonly ["title", "quantity", "currency", "unit_price"]; readonly properties: { readonly title: { readonly type: "string"; readonly description: "Product or service title"; }; readonly quantity: { readonly type: "number"; readonly description: "Quantity of items"; }; readonly currency: { readonly type: "string"; readonly description: "Currency ID (e.g. ARS, BRL, MXN, CLP, COP, UYU, PEN)"; }; readonly unit_price: { readonly type: "number"; readonly description: "Unit price of the item"; }; readonly back_urls: { readonly type: "object"; readonly description: "URLs to redirect the buyer after payment"; readonly properties: { readonly success: { readonly type: "string"; readonly description: "URL on approved payment"; }; readonly failure: { readonly type: "string"; readonly description: "URL on rejected payment"; }; readonly pending: { readonly type: "string"; readonly description: "URL on pending payment"; }; }; }; readonly notification_url: { readonly type: "string"; readonly description: "Webhook URL for payment notifications (IPN)"; }; }; }; } | { readonly name: "get_payment"; readonly description: "Retrieve a payment by its ID. Returns full payment details including status, amount, payer info."; readonly parameters: { readonly type: "object"; readonly required: readonly ["payment_id"]; readonly properties: { readonly payment_id: { readonly type: "string"; readonly description: "The payment ID to look up"; }; }; }; } | { readonly name: "create_refund"; readonly description: "Refund a payment fully or partially. Omit amount for full refund."; readonly parameters: { readonly type: "object"; readonly required: readonly ["payment_id"]; readonly properties: { readonly payment_id: { readonly type: "string"; readonly description: "The payment ID to refund"; }; readonly amount: { readonly type: "number"; readonly description: "Partial refund amount. Omit for full refund."; }; }; }; } | { readonly name: "search_payments"; readonly description: "Search recent payments for the authenticated merchant. Supports filtering by status."; readonly parameters: { readonly type: "object"; readonly properties: { readonly status: { readonly type: "string"; readonly description: "Filter by status: approved, pending, rejected, refunded, cancelled"; }; readonly sort: { readonly type: "string"; readonly description: "Sort field (e.g. date_created)"; }; readonly criteria: { readonly type: "string"; readonly description: "Sort order: asc or desc"; }; readonly limit: { readonly type: "number"; readonly description: "Max results (default 30, max 100)"; }; readonly offset: { readonly type: "number"; readonly description: "Pagination offset"; }; }; }; } | { readonly name: "get_merchant_info"; readonly description: "Retrieve the authenticated merchant's user profile including ID, nickname, and site."; readonly parameters: { readonly type: "object"; readonly properties: {}; }; })[]; tools: { create_payment_preference: (params: CreatePaymentPreferenceParams) => Promise; get_payment: (params: GetPaymentParams) => Promise; create_refund: (params: CreateRefundParams) => Promise; search_payments: (params?: SearchPaymentsParams) => Promise; get_merchant_info: () => Promise; }; }; export { MercadoPagoClient } from "./client.js"; export type { ClientOptions } from "./client.js"; export { MercadoPagoError } from "./errors.js"; export { createPaymentPreference, getPayment, createRefund, searchPayments, getMerchantInfo, } from "./actions.js"; export { allSchemas } from "./schemas.js"; export type { CreatePaymentPreferenceParams, GetPaymentParams, CreateRefundParams, SearchPaymentsParams, BackUrls, } from "./schemas.js"; export { createWebhookHandler } from "./webhook.js"; export type { WebhookConfig } from "./webhook.js"; export { createWhatsAppWebhookHandler, WhatsAppClient, createCommandHandlers, createPaymentNotifier, parseMessage, extractMessages } from "./whatsapp/webhook.js"; export type { WhatsAppWebhookConfig, WhatsAppClientConfig, HandlersConfig, ParsedCommand, IncomingWhatsAppMessage, CommandName } from "./whatsapp/webhook.js";