import type { IAddProductParams } from '@/core/client/actions/client-cart-action.service'; import type { IAnonymousCheckoutAddProductItem } from '@/interfaces/api/checkout.interface'; import type { IInjectedComponent } from '@/interfaces/component.interface'; import type { IClientCustomThemeConfig, ILiquidCommerceElementsDevelopmentConfig } from '@/interfaces/config.interface'; import type { IInjectCheckoutParams } from '@/interfaces/injection.interface'; export interface IQueryParamActions { addProduct: (params: IAddProductParams[], open?: boolean) => Promise; applyPromoCode: (promoCode: string) => Promise; } export declare const SHARED_ATTR: { readonly SCRIPT: { readonly MAIN: "data-liquid-commerce-elements"; readonly TOKEN: "data-token"; readonly ENV: "data-env"; readonly DEBUG_MODE: "data-debug-mode"; readonly PRODUCT_PARAM: "data-product-param"; readonly PRODUCT_FULFILLMENT_TYPE_PARAM: "data-product-fulfillment-type-param"; readonly PRODUCT_QUANTITY_PARAM: "data-product-quantity-param"; readonly PROMO_CODE_PARAM: "data-promo-code-param"; readonly CHECKOUT_PARAM: "data-checkout-param"; readonly CHECKOUT_URL: "data-checkout-url"; }; readonly ELEMENT: { readonly CHECKOUT: "data-lce-checkout"; readonly HIDE_HEADER: "hide-header"; readonly EXIT_CHECKOUT: "data-lce-exit-checkout"; }; readonly JSON_SCRIPT: { readonly DEVELOPMENT: "data-liquid-commerce-elements-development"; readonly CUSTOM_THEME: "data-liquid-commerce-elements-custom-theme"; readonly PRODUCT_URLS: "data-liquid-commerce-elements-product-urls"; }; }; export type ProductUrlsConfig = Record>; export declare function startsWithLcePrefix(value: string | null): boolean; export declare function getDevelopmentConfigs(): ILiquidCommerceElementsDevelopmentConfig | undefined; export declare function getCustomThemeConfig(): IClientCustomThemeConfig | undefined; export declare function getProductUrlsConfig(): ProductUrlsConfig | undefined; export declare function triggerAutoInit(initFunction: () => Promise, errorPrefix: string): void; export declare function setupCheckout(script: HTMLScriptElement, injectFn: (params: IInjectCheckoutParams) => Promise, exitCheckoutFn: () => void, options: { errorPrefix: string; }): Promise; export declare function setupExitCheckoutHandlers(exitCheckoutFn: () => void): void; export declare function addProductViaQueryParam(actions: IQueryParamActions, script: HTMLScriptElement, errorPrefix: string): Promise; export declare function extractAnonymousProductFromQueryParams(script: HTMLScriptElement, errorPrefix: string): { item: IAnonymousCheckoutAddProductItem; promoCode?: string; } | null; export declare function applyPromoCodeViaQueryParam(actions: IQueryParamActions, script: HTMLScriptElement, errorPrefix: string): Promise;