import { SDKUtils } from "../../models/common"; import { RecentSmartCollectionProduct, smartCollectionsCallback, SmartCollectionsResponse, smartCollectionsResults } from "../../models/smartCollections"; import { Narrow, SortBy } from "../../models/fullTextSearch"; import { inventoryCallback } from "../../models/productsInventory"; export declare const emptyResults: (self: SDKUtils, categoryID: string) => void; export declare const setInfiniteScroll: (self: SDKUtils, infiniteCount?: number, productsPerPage?: number) => void; export declare const getData: (self: SDKUtils, response: SmartCollectionsResponse) => smartCollectionsResults; interface HandleSmartCollectionProps { self: SDKUtils; personalized: boolean; callback: smartCollectionsCallback; event: "products" | "facets and products"; time?: number; isNoResults?: boolean; page: number; narrow?: Narrow[]; sortBy?: SortBy; result: smartCollectionsResults; inventoryCallback?: inventoryCallback; access_token?: string; shop_url?: string; onProductsLoaded?: smartCollectionsCallback; onFacetsLoaded?: smartCollectionsCallback; callbackType?: "products" | "facets and products" | "facets"; } export declare const handleSmartCollection: ({ event, callback, self, personalized, time, isNoResults, page, sortBy, narrow, result, inventoryCallback, access_token, shop_url, onProductsLoaded, onFacetsLoaded, callbackType }: HandleSmartCollectionProps) => void; export declare const getCollectionName: (self: SDKUtils, id: string) => string; export declare const getRecentCollectionProducts: () => RecentSmartCollectionProduct[]; export declare const updateRecentCollectionProducts: (productID: string, categoryID: string) => void; export declare const facetNeeded: ({ self, newNarrow, newPage, newCategoryID }: { self: SDKUtils; newNarrow?: Narrow[]; newPage: number; newCategoryID: string; }) => boolean; export declare const isRecommendedProduct: (productId: string, ids?: { [key: string]: boolean; }) => boolean; export declare const handleProductFacetsCallbacks: (result: smartCollectionsResults, action: "products" | "facets", onProductsLoaded?: smartCollectionsCallback, onFacetsLoaded?: smartCollectionsCallback) => void; export declare const hasProductFacetsCallbacks: (onProductsLoaded?: smartCollectionsCallback, onFacetsLoaded?: smartCollectionsCallback) => boolean; export {};