///
import { GetServerSidePropsContext, GetStaticPropsContext } from "next";
import { ParsedUrlQuery } from "querystring";
import { IkasCustomerReviewSettings, IkasCustomerSettings, IkasImage, IkasLoyaltyProgram, IkasMerchantSettings, IkasProductBackInStockSettings, IkasSalesChannel, IkasStorefront, IkasStorefrontPopup, IkasStorefrontRouting, IkasStorefrontThemeLocalization, IkasThemeJson, IkasThemeJsonFavicon, IkasThemeJsonPageType, IkasThemeJsonSettings, IkasThemeJsonStockPreference } from "@ikas/storefront-models";
import { IkasPageDataProvider } from "@ikas/storefront-providers";
import { IkasStorefrontSettings } from "@ikas/storefront-api";
export declare class IkasNextPageDataProvider {
static startTime: number;
static readLocalTheme(): Promise;
static readSettingsFile(): Promise;
static cacheLocalSettingsFile(settings: IkasStorefrontSettings): Promise;
static readLocalSettingsFile(): any;
static getLocalSettings(locale: string): Promise;
static getProdSettings(locale: string): Promise;
static getSettings(locale: string): Promise;
static setStorefrontConfig(settings: SettingsData): Promise;
static setTranslations(settings: SettingsData, componentIds: string[], pageType?: IkasThemeJsonPageType, isEditor?: boolean, contextLocale?: string): Promise;
static getExtraProps(settings: SettingsData, provider: IkasPageDataProvider, pageType?: IkasThemeJsonPageType): Promise>;
static getPageData(context: GetStaticPropsContext | GetServerSidePropsContext, isServer: boolean, pageType?: IkasThemeJsonPageType, possiblePageTypes?: IkasThemeJsonPageType[], isEditor?: boolean): Promise<{
props: {};
notFound: boolean;
revalidate?: undefined;
} | {
props: any;
notFound?: undefined;
revalidate?: undefined;
} | {
props: any;
revalidate: number;
notFound?: undefined;
}>;
static getStaticProps(context: GetStaticPropsContext, pageType?: IkasThemeJsonPageType, possiblePageTypes?: IkasThemeJsonPageType[], isEditor?: boolean): Promise<{
props: {};
notFound: boolean;
revalidate?: undefined;
} | {
props: any;
notFound?: undefined;
revalidate?: undefined;
} | {
props: any;
revalidate: number;
notFound?: undefined;
}>;
static getServerSideProps(context: GetServerSidePropsContext, pageType?: IkasThemeJsonPageType): Promise<{
props: {};
notFound: boolean;
revalidate?: undefined;
} | {
props: any;
notFound?: undefined;
revalidate?: undefined;
} | {
props: any;
revalidate: number;
notFound?: undefined;
}>;
static createColorScript(settings: IkasThemeJsonSettings): string | undefined;
static createFontScript(settings: IkasThemeJsonSettings): Promise;
}
export declare type SettingsData = {
storefront: IkasStorefront;
themeLocalization: IkasStorefrontThemeLocalization;
salesChannel: IkasSalesChannel;
routing: IkasStorefrontRouting;
localizationMap?: Record;
favicon: IkasThemeJsonFavicon;
stockPreference: IkasThemeJsonStockPreference;
storefrontJSScripts: string[];
highPriorityStoreFrontJSScripts: string[];
domain: string;
productBackInStockSettings: IkasProductBackInStockSettings | null;
customerReviewSettings: IkasCustomerReviewSettings | null;
merchantSettings: IkasMerchantSettings;
customerSettings?: IkasCustomerSettings;
custom?: Record | null;
storefrontPopups: IkasStorefrontPopup[];
loyaltyPrograms: IkasLoyaltyProgram[];
payWithIkasUrl?: string | null;
};
export declare type IkasCheckoutCustomizationProps = {
logo?: IkasImage;
showTax?: boolean;
showLoyaltyPoints?: boolean;
showCampaignOffersDesign?: boolean;
showCampaignIsBiggerImage?: boolean;
campaignOfferIsSmallDesign?: boolean;
showCampaignHideDiscountBadge?: boolean;
campaignOfferCountdownStyleIsLine?: boolean;
campaignOfferCountdownStyleIsLineSuccessPage?: boolean;
campaignOffersEnableMiddlePhase?: boolean;
campaignOffersTitleColor?: string;
campaignOffersDescriptionColor?: string;
campaignOffersContainerBgColor?: string;
campaignOffersDiscountPercentageColor?: string;
campaignOffersDiscountPercentageBgColor?: string;
campaignOffersCountdownTextColor?: string;
campaignOffersCountdownTimeColor?: string;
campaignOffersCountdownBgColor?: string;
campaignOffersMiddlePhaseOverlayColor?: string;
buttonBgColor?: string;
buttonTextColor?: string;
buttonDisabledBgColor?: string;
buttonDisabledTextColor?: string;
primaryTextColor?: string;
secondaryTextColor?: string;
primaryBgColor?: string;
secondaryBgColor?: string;
borderColor?: string;
cardBgColor?: string;
errorColor?: string;
errorLightColor?: string;
warningColor?: string;
warningLightColor?: string;
successColor?: string;
successLightColor?: string;
secondaryButtonBgColor?: string;
secondaryButtonTextColor?: string;
secondaryButtonBorderColor?: string;
};