import { type PaymentMethod } from "../schemas.js"; export interface CompletePaymentSessionInput { /** Defaults to `"paid"` server-side. */ status?: "authorized" | "paid"; /** Defaults to `"manual"` server-side. */ captureMode?: "automatic" | "manual"; paymentMethod?: PaymentMethod | null; paymentInstrumentId?: string | null; providerSessionId?: string | null; providerPaymentId?: string | null; externalReference?: string | null; referenceNumber?: string | null; paymentDate?: string | null; authorizedAt?: string | null; capturedAt?: string | null; settledAt?: string | null; notes?: string | null; metadata?: Record | null; } export interface CancelPaymentSessionInput { notes?: string | null; cancelledAt?: string | null; metadata?: Record | null; } /** * Admin payment-session transitions * (`POST /v1/admin/finance/payment-sessions/:id/complete` and `/cancel`). * Completing a session settles its invoice/payment side effects * server-side, so payment + invoice lists are invalidated alongside the * session list; callers that render booking-scoped surfaces should also * invalidate their booking keys on success. */ export declare function usePaymentSessionMutation(): { complete: import("@tanstack/react-query").UseMutationResult<{ legacyOrderId: string | null; target: { type: "booking"; bookingId: string; } | { type: "invoice"; invoiceId: string; } | { type: "booking_payment_schedule"; bookingPaymentScheduleId: string; } | { type: "booking_guarantee"; bookingGuaranteeId: string; } | { type: "flight_order"; flightOrderId: string; } | { type: "program"; programId: string; } | { type: "supplier_settlement"; supplierSettlementId: string; } | { type: "channel_settlement"; channelSettlementId: string; } | { type: "provider_reference"; provider: string; reference: string; } | { type: "legacy_order"; legacyOrderId: string; } | null; provenance: { source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration"; provider?: string | null | undefined; reference?: string | null | undefined; idempotencyKey?: string | null | undefined; } | null; id: string; targetType: string; targetId: string | null; bookingId: string | null; invoiceId: string | null; bookingPaymentScheduleId: string | null; bookingGuaranteeId: string | null; paymentInstrumentId: string | null; paymentAuthorizationId: string | null; paymentCaptureId: string | null; paymentId: string | null; status: "expired" | "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"; provider: string | null; providerSessionId: string | null; providerPaymentId: string | null; externalReference: string | null; idempotencyKey: string | null; clientReference: string | null; currency: string; amountCents: number; paymentMethod: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "other" | "bank_transfer" | "cheque" | null; payerPersonId: string | null; payerOrganizationId: string | null; payerEmail: string | null; payerName: string | null; redirectUrl: string | null; returnUrl: string | null; cancelUrl: string | null; callbackUrl: string | null; expiresAt: string | null; completedAt: string | null; failedAt: string | null; cancelledAt: string | null; expiredAt: string | null; failureCode: string | null; failureMessage: string | null; notes: string | null; providerPayload: Record | null; metadata: Record | null; createdAt: string; updatedAt: string; providerConnectionId?: string | null | undefined; }, Error, { id: string; input?: CompletePaymentSessionInput; }, unknown>; cancel: import("@tanstack/react-query").UseMutationResult<{ legacyOrderId: string | null; target: { type: "booking"; bookingId: string; } | { type: "invoice"; invoiceId: string; } | { type: "booking_payment_schedule"; bookingPaymentScheduleId: string; } | { type: "booking_guarantee"; bookingGuaranteeId: string; } | { type: "flight_order"; flightOrderId: string; } | { type: "program"; programId: string; } | { type: "supplier_settlement"; supplierSettlementId: string; } | { type: "channel_settlement"; channelSettlementId: string; } | { type: "provider_reference"; provider: string; reference: string; } | { type: "legacy_order"; legacyOrderId: string; } | null; provenance: { source: "other" | "operator" | "storefront" | "customer_portal" | "payment_provider" | "supplier_channel" | "migration"; provider?: string | null | undefined; reference?: string | null | undefined; idempotencyKey?: string | null | undefined; } | null; id: string; targetType: string; targetId: string | null; bookingId: string | null; invoiceId: string | null; bookingPaymentScheduleId: string | null; bookingGuaranteeId: string | null; paymentInstrumentId: string | null; paymentAuthorizationId: string | null; paymentCaptureId: string | null; paymentId: string | null; status: "expired" | "paid" | "pending" | "failed" | "requires_redirect" | "processing" | "authorized" | "cancelled"; provider: string | null; providerSessionId: string | null; providerPaymentId: string | null; externalReference: string | null; idempotencyKey: string | null; clientReference: string | null; currency: string; amountCents: number; paymentMethod: "credit_card" | "debit_card" | "cash" | "wallet" | "direct_bill" | "travel_credit" | "other" | "bank_transfer" | "cheque" | null; payerPersonId: string | null; payerOrganizationId: string | null; payerEmail: string | null; payerName: string | null; redirectUrl: string | null; returnUrl: string | null; cancelUrl: string | null; callbackUrl: string | null; expiresAt: string | null; completedAt: string | null; failedAt: string | null; cancelledAt: string | null; expiredAt: string | null; failureCode: string | null; failureMessage: string | null; notes: string | null; providerPayload: Record | null; metadata: Record | null; createdAt: string; updatedAt: string; providerConnectionId?: string | null | undefined; }, Error, { id: string; input?: CancelPaymentSessionInput; }, unknown>; };