import { ContensisQueryOrderBy, IExpression, ILogicalExpression, VersionStatus } from 'contensis-core-api'; import { DataFormats } from '../models/Enums'; import { CustomWhereClause, FieldOperators, SearchQueryFilter, WeightedSearchField } from '../models/SearchQuery'; export declare const fieldExpression: (field: string | string[], value: any, operator?: FieldOperators, weight?: number) => IExpression[]; export declare const contentTypeIdExpression: (contentTypeIds?: string[], webpageTemplates?: string[], assetTypes?: string[]) => ILogicalExpression[]; export declare const filterExpressions: (filters?: SearchQueryFilter[]) => IExpression[]; export declare const dataFormatExpression: (dataFormats?: DataFormats[]) => IExpression[]; export declare const dataFormatWithContentTypesExpression: (contentTypeIds?: string[], dataFormat?: DataFormats) => ILogicalExpression[]; export declare const featuredResultsExpression: ({ contentTypeId, fieldId, fieldValue, }?: { contentTypeId?: string | string[]; fieldId?: string | string[]; fieldValue?: boolean; }) => IExpression[]; export declare const entryTitlesExpression: (entryTitles?: string[]) => IExpression[]; export declare const includePathsExpression: (includePaths?: string[]) => IExpression[]; export declare const languagesExpression: (languages?: string[]) => IExpression[]; export declare const defaultExpressions: (versionStatus: VersionStatus) => IExpression[]; export declare const includeIdsExpression: (includeIds?: string[]) => IExpression[]; export declare const excludeIdsExpression: (excludeIds?: string[]) => ILogicalExpression[]; export declare const orderByExpression: (orderBy?: string[]) => ContensisQueryOrderBy; /** * Accept HTTP style objects and map them to * their equivalent JS client "Op" expressions * @param {array} where the where array as you'd provide it to the HTTP API * @returns {array} array of constructed Delivery API Operators */ export declare const customWhereExpressions: (where?: CustomWhereClause) => IExpression[]; export declare const termExpressions: (searchTerm?: string, weightedSearchFields?: WeightedSearchField[]) => ILogicalExpression[]; export declare const extractQuotedPhrases: (searchTerm: string) => string[]; export declare function fixFreeTextForElastic(s: string): string;