import type { ServiceApiParams, RequestBodyBase, ServiceDataParams } from '../../../common'; import { PaymentMethodEnum } from '../../../constants'; import type { BaseCreditCardResponse } from './common'; export type PaymentObjectCreateCreditCard = { InstallmentQuantity: number; IsPreAuthorization: boolean; IsApplyInterest: boolean; InterestRate: number; SoftDescriptor: string; Holder: string; CardNumber: NumericalString; ExpirationDate: `${DateMonthType}/${DateYearType}`; SecurityCode: NumericalString; Token: string; }; export type PaymentObjectCreateCreditCardWithToken = Omit; export type PaymentObjectCreateCreditCardWithoutToken = Omit; export type CreateCreditCardData = RequestBodyBase & { ShouldUseAntiFraud: boolean; VisitorID: string; PaymentMethod?: typeof PaymentMethodEnum.CREDIT_CARD; PaymentObject: PaymentObjectCreateCreditCardWithToken | PaymentObjectCreateCreditCardWithoutToken; }; export type CreateCreditCardResponse = BaseCreditCardResponse; export declare function createCreditCard({ payment }: ServiceApiParams, { data }: ServiceDataParams<{ data: CreateCreditCardData; }>): Promise;