import { UseMutationOptions, UseQueryOptions } from '@tanstack/react-query'; import { IConnectorCredentials, ICreateSetupIntentPayload, ICustomerPaymentMethodsPayload, ISetDefaultPaymentMethodPayload, ISetupIntentResponse } from '../../types/connector.types'; import { BusinessEntityType, CustomerType, ICustomerPaymentMethodsList } from '../../types/customer.types'; /** * Connector query definitions following React Query patterns */ export declare const connectorQueries: { all: () => readonly ["connector"]; credentials: () => readonly ["connector", "credentials"]; stripeKeys: () => readonly ["connector", "credentials", "stripe"]; customerReference: (customerId: string, connector: string) => readonly ["connector", "customer-reference", string, string]; paymentMethods: (customerId: string, businessEntity?: string) => readonly ["connector", "payment-methods", string, string]; }; /** * Hook to get Stripe publishable keys * @description This hook is used to get Stripe publishable keys from connector credentials * @param business_entity - Optional business entity * @returns Query methods for getting Stripe publishable keys */ export declare const useGetStripePublishableKeys: (business_entity?: string | null, options?: Omit, "queryKey" | "queryFn">) => import('@tanstack/react-query').UseQueryResult; /** * Hook to get customer payment methods (Query - Cached) * @description This hook is used to get customer payment methods from the connector with caching * @param customerId - The customer ID * @param business_entity - Optional business entity * @returns Query methods for getting customer payment methods */ export declare const useGetCustomerPaymentMethods: (customerId: CustomerType, business_entity?: BusinessEntityType, options?: Omit, "queryKey" | "queryFn">) => import('@tanstack/react-query').UseQueryResult; /** * Hook to get customer payment methods (Mutation - Not Cached) * @description This hook is used to get customer payment methods from the connector * @returns Mutation methods for getting customer payment methods */ export declare const useGetCustomerPaymentMethodsMutation: (options?: Omit, "mutationFn">) => import('@tanstack/react-query').UseMutationResult; /** * Hook to create setup intent * @description This hook is used to create a setup intent for payment setup * @returns Mutation methods for creating setup intent */ export declare const useCreateSetupIntentMutation: (options?: Omit, "mutationFn">) => import('@tanstack/react-query').UseMutationResult; /** * Hook to set default payment method * @description This hook is used to set a default payment method for a customer * @returns Mutation methods for setting default payment method */ export declare const useSetDefaultPaymentMethodMutation: (options?: Omit, "mutationFn">) => import('@tanstack/react-query').UseMutationResult;