import { ParsedQuery } from 'query-string';
import { TIPSER_CHECKOUT_ID_QS_PARAM_NAME, EXPRESS_CHECKOUT_ID_QS_PARAM_NAME, CHECKOUT_STATUS_QS_PARAM_NAME, TRANSACTION_ID_QS_PARAM_NAME, OPEN_DIALOG_QS_PARAM_NAME, CREATE_ACCOUNT_QS_PARAM_NAME } from './consts';
import { KlarnaMerchantUrls } from '../../api/legacy-checkout-types';
import { CountryCode } from 'library/src/common/market-metadata';
export declare const removeConfirmationParamsFromUrl: () => void;
export declare const getCurrentUrlUpdatedWithQsParams: (newQueryString: ParsedQuery) => string;
export declare type ConfirmationUrlOptions = {
    shouldRetainOriginalQueryString?: boolean;
    isInDialog?: boolean;
    createAccount?: boolean;
    isExpressPayment?: boolean;
};
export declare const buildConfirmationUrl: (url: string, transactionId: string, checkoutId?: string, options?: ConfirmationUrlOptions) => string;
export declare const buildConfirmationQueryObject: (transactionId: string, checkoutId?: string, options?: ConfirmationUrlOptions) => {
    createAccount: string;
    expressCheckoutId: string;
    tipserCheckoutId: string;
    openCheckoutModal: string;
    checkoutStatus: string;
    transactionId: string;
};
export declare const createKlarnaMerchantUrls: (market: CountryCode, confirmationUrlFromConf: string, checkoutUrlFromConf: string, isInDialog?: boolean) => KlarnaMerchantUrls;
export declare const isCheckoutIdInUrl: (url: string) => boolean;
export declare const isExpressCheckoutIdInUrl: (url: string) => boolean;
export declare const isValidConfirmationUrl: (url: string) => boolean;
export declare const isKlarnaConfirmationUrl: (url: string) => boolean;
export declare const getTransactionIdFromUrl: (url: string) => string | string[];
export declare const shouldOpenCheckoutDialog: () => boolean;
export declare const shouldCreateAccount: () => boolean;
export declare const getAbsoluteUrl: (url: string) => string;
export declare function addToQueryParams(key: string, value: string): void;
export declare function removeFromQueryParams(key: string): void;
export declare function getQueryParamsFromUrl<T>(key: string): T;
export declare function cleanCheckoutQueryParams(): void;
//# sourceMappingURL=checkout-urls-utils.d.ts.map