export declare enum FacetType { TERMS = "terms", RANGE = "range", STATS = "stats", HIERARCHY = "hierarchy" } export type FacetRangesWithStep = { min: number; max: number; step: number; }; export type FacetRangesWithIntervals = { to: number; } | { from: number; to: number; } | { from: number; }; export type FacetBase = { key: string; }; export type FacetGroupItemTypeRange = { type: FacetType.RANGE; label: string; ranges: FacetRangesWithStep | FacetRangesWithIntervals[]; }; export type FacetGroupItemTypeTerms = { type: FacetType.TERMS; label: string; limit?: number; }; export type FacetGroupItemTypeHierarchy = { type: FacetType.HIERARCHY; label: string; maxDepth?: number; limit?: number; }; export type FacetGroupItemTypeStats = { type: FacetType.STATS; label: string; }; export type FacetItem = FacetBase & (FacetGroupItemTypeTerms | FacetGroupItemTypeRange | FacetGroupItemTypeStats | FacetGroupItemTypeHierarchy);