import { OrderDTO } from '@sentecacommerce/sdk';
import { QueryResult } from 'react-query';
import { CheckoutFormErrorLabelsType, CheckoutFormErrorsResultType } from '../..';
import { PaymentMethodsResult } from '../../../../hooks/useCheckoutPayment';
export declare const usePayment: ({ orderQuery, errorLabels, enabled, }: {
    orderQuery: QueryResult<OrderDTO, unknown>;
    errorLabels: CheckoutFormErrorLabelsType;
    enabled: boolean;
}) => UsePaymentResultType;
export declare type UsePaymentResultType = {
    isSubmitting: boolean;
    errors?: CheckoutFormErrorsResultType;
    isValid: boolean;
    updateIsSubmitting: (value: boolean) => void;
    paymentMethods?: PaymentMethodsResult;
};
