import { IObservableArray } from "mobx"; export interface FacetValue { code: string; label: string; count: number; } export interface OutputFacet { [facet: string]: FacetValue[]; } export interface QueryInput { facets: { [facet: string]: string; }; criteria: { query: string; scope: string; }; group: string; sortFieldName?: string; sortDesc: boolean; skip: number; top: number; } export interface QueryOutput { list?: T[]; groups?: { [name: string]: T[]; }[]; facets: OutputFacet[]; totalCount: number; query: QueryInput; } export interface UnscopedQueryOutput { facets: OutputFacet[]; groups: { [name: string]: {}[]; }[]; totalCount: number; query: QueryInput; } export declare type Results = { [group: string]: IObservableArray; } | IObservableArray<{ [group: string]: IObservableArray; }>; export interface StoreFacet { code: string; label: string; values: { code: string; label: string; count: number; }[]; }