import { QueryBuilder, IQueryResult, IQueryGenericFacets, QueryResponse } from '@relevance/core'; /** * Represents a search request parameters. */ export interface ISearchParams { m?: 'f' | 'b' | 'm'; q?: string; f?: string; s?: string; o?: 'a' | 'd'; x?: string; y?: string; } /** * Represents an applied filter. */ export interface ISearchFilter { type: string; value: string; negative: boolean; } /** * Represents a search response object. */ export interface ISearchResponse { chunk: R[]; items: R[]; response: QueryResponse; } /** * This function type is used to pipe built queries for modifications. */ export declare type ISearchQueryPipe = (query: QueryBuilder) => void; /** * This function type is used to pipe results to a specific handler. */ export declare type ISearchApplyPipe = (response: ISearchResponse) => void;