import { default as Countries } from '../countries.json'; import { FormConfig, IZotloCardParams, IZotloCheckoutParams, PaymentProvider, SavedCardsGroupName, FooterInfo, FormSetting, PaymentDetail } from '../lib/types'; export { getCDNUrl } from './getCDNUrl'; export { useI18n } from './i18n'; export { calculatePaymentStartDate } from './paymentStartCalculation'; type Country = typeof Countries[0]; export declare const ZOTLO_GLOBAL: { ready: boolean; cardUpdate: boolean; data: { subscriberId: string; discountCode: string; }; checkout: { containerId: string; }; card: { containerId: string; }; containerId: string; readonly container: HTMLElement | null; readonly formElement: HTMLFormElement | null; reset(): void; }; export declare function shouldSkipBillingFields(config: FormConfig): boolean; export declare function getCountryCodeByNumber(phoneNumber: string | number, matchLength?: boolean): string; export declare function getCountryByCode(code: string): (Country & { maskLength: number; }) | undefined; export declare function getMaskByCode(country: any): string; export declare function generateAttributes(attrs: Record): string; export declare function preparePaymentMethods(config: FormConfig): { providerKey: PaymentProvider; countries?: string[]; }[]; export declare function isPixAvailable(config: FormConfig): boolean; export declare function isDLocalEnabled(config: FormConfig): boolean; export declare function isDLocalIdentityRequired(config: FormConfig): boolean; export declare function isDLocalIdentityAvailable(config: FormConfig): boolean; export declare function getDLocalIdentityCountry(config: FormConfig): string | null; export declare function isDLocalIdentityVisible(params: { config: FormConfig; activeTab?: string | null; }): boolean; /** * The offer the post payment offers page renders and the user can accept, with * its position within the payment detail. Single source of truth so the rendered * price, the applied settings and the posted offerId cannot diverge. */ export declare function getActivePostPaymentOffer(params: { config: FormConfig; paymentDetail?: PaymentDetail | null; }): { offer: import('../lib/types').OffersObject; index: number; } | null; export declare function generateTabButtons(config: FormConfig, paymentMethods: FormSetting['paymentMethodSetting']): string; export declare const REDIRECT_LOCK_MS = 10000; export declare const REDIRECT_FAILED_MESSAGE = "Could not redirect to the 3D Secure verification page. Please try again."; /** * Keeps the form locked while the browser navigates away, so a second tap cannot start * another checkout with the still valid session. The payment flows unlock the form in * their finally blocks; that unlock is ignored until the lock expires or is cleared. * `onTimeout` runs only when the lock expires, i.e. the page never left. */ export declare function lockFormForRedirect(onTimeout?: () => void): void; export declare function clearFormRedirectLock(): void; export declare function setFormLoading(loading?: boolean): void; export declare function isPlainObject(item: unknown): boolean; export declare function mergeDeep(target: Record, ...sources: Record[]): { [x: string]: any; }; export declare const debounce: any; export declare function setFormDisabled(disabled?: boolean): void; export declare function activateDisabledSubscriberIdInputs(): void; export declare function handleSubscriberIdInputEventListeners(action: "add" | "remove" | undefined, triggerFunction: () => void): void; export declare function handleSavedCardsEvents(params: { config: FormConfig; }): { destroy: () => void; }; export declare function getFooterPriceInfo(config: FormConfig): string; export declare function getSubmitButtonContent(config: FormConfig): string; export declare function handlePriceChanges(config: FormConfig): Promise; export declare function getIsDiscountCodeApplied(config: FormConfig): boolean; export declare function syncInputsOnTabs(tabName: string | null, inputNames: string[]): void; export declare function toggleDLocalIdentityVisibility(show: boolean): void; export declare function getActiveSavedCardId(params: { providerKey?: PaymentProvider; config: FormConfig; groupName?: SavedCardsGroupName; }): number; export declare function getIsSavedCardPayment(params: { providerKey?: PaymentProvider; config: FormConfig; }): boolean; /** * Legal names and document links shared by every footer disclaimer. * Russia is served under the Jigle brand, so the name is swapped for every text. */ export declare function getLegalTextParams(config: FormConfig): { appName: string; zotloName: string; zotloTitle: string; termsOfUse: string; privacyPolicy: string; zotloTerms: string; zotloPrivacy: string; }; export declare function prepareFooterInfo(params: { config: FormConfig; }): FooterInfo; export declare function handleResponseRedirection(payload: { response: Record; params: IZotloCardParams | IZotloCheckoutParams; sessionKey?: string; }): Promise; export declare function parseQueryString(query: string): Record; export declare function getUserDataForIntegration(payload: { registerType: string; subscriberId?: string; }): Promise<{ user_data: Record; context: { [x: string]: string; }; }>; export declare function sendIntegrationCAPIInfo(): void;