import type { Maybe } from '../../../__generated__/schema'; export interface SelectedFacet { key: string; value: string; } export interface CrossSellingFacet { key: keyof typeof FACET_CROSS_SELLING_MAP; value: string; } export declare const FACET_CROSS_SELLING_MAP: { readonly buy: "whoboughtalsobought"; readonly view: "whosawalsosaw"; readonly similars: "similars"; readonly viewAndBought: "whosawalsobought"; readonly accessories: "accessories"; readonly suggestions: "suggestions"; }; export type FuzzyFacet = { key: 'fuzzy'; value: '0' | '1' | 'auto'; }; export type OperatorFacet = { key: 'operator'; value: 'and' | 'or'; }; /** * Transform facets from the store to VTEX platform facets. * For instance, the channel in Store becomes trade-policy and regionId in VTEX's realm * */ export declare const transformSelectedFacet: ({ key, value }: SelectedFacet) => never[] | { key: string; value: string; }; export declare const parseRange: (range: string) => [number, number] | null; export declare const isCrossSelling: (x: string) => x is "similars" | "accessories" | "suggestions" | "buy" | "view" | "viewAndBought"; export declare const findCrossSelling: (facets?: Maybe) => CrossSellingFacet | null; export declare const findSlug: (facets?: Maybe) => string | null; export declare const findSkuId: (facets?: Maybe) => string | null; export declare const findLocale: (facets?: Maybe) => string | null; export declare const findChannel: (facets?: Maybe) => string | null; //# sourceMappingURL=facets.d.ts.map