import { type PaymentMethod, type PaymentStatus } from "../schemas.js"; export interface UpdatePaymentInput { amountCents?: number; currency?: string; baseCurrency?: string | null; baseAmountCents?: number | null; fxRateSetId?: string | null; paymentMethod?: PaymentMethod; status?: PaymentStatus; referenceNumber?: string | null; paymentDate?: string; notes?: string | null; } /** * Mutations for an already-recorded customer payment. * * `useInvoicePaymentMutation(invoiceId)` covers create; update + delete * route through `/v1/admin/finance/payments/:id` and recompute invoice totals * server-side, so callers don't need to refresh the invoice manually — * onSuccess invalidates the invoice and payment list queries. */ export declare function usePaymentMutation(): { update: import("@tanstack/react-query").UseMutationResult<{ id: string; invoiceId: string; amountCents: number; currency: string; baseCurrency: string | null; baseAmountCents: number | null; paymentMethod: string; status: "pending" | "failed" | "completed" | "refunded"; referenceNumber: string | null; paymentDate: string; notes: string | null; createdAt: string; fxRateSetId?: string | null | undefined; }, Error, { id: string; input: UpdatePaymentInput; }, unknown>; remove: import("@tanstack/react-query").UseMutationResult<{ id: string; invoiceId: string; amountCents: number; currency: string; baseCurrency: string | null; baseAmountCents: number | null; paymentMethod: string; status: "pending" | "failed" | "completed" | "refunded"; referenceNumber: string | null; paymentDate: string; notes: string | null; createdAt: string; fxRateSetId?: string | null | undefined; }, Error, string, unknown>; };