import { FilterModelName } from '../../named-model.model' ; import { Facet } from '../facet.model' ; import { Filter } from './filter.model' ; /**
 * A filter which is associated with a  Facet .
 *
 *  remarks public export interface FacetFilter extends Filter { /**
     * The filter  ModelNameType excluding  RawFilter * model name.
      modelName : Exclude < FilterModelName , 'RawFilter' > ; /** An unique ID that identifies the facet that uses this filter. */ facetId : Facet [ 'id' ] ; } /**
 * Type guard to check if a filter is a  FacetFilter .
 *
 *  param filter returns True if the filter is a  FacetFilter , false otherwise.
 *
 *  public export function isFacetFilter ( filter ) { return 'facetId' in filter ; }