import type { OpenSearchBoolQueryConfig } from "@webiny/api-opensearch/types.js";
import type { CmsEntryListWhere, CmsModel } from "@webiny/api-headless-cms/types/index.js";
export declare const createBaseQuery: () => OpenSearchBoolQueryConfig;
interface Params {
    model: CmsModel;
    where: CmsEntryListWhere;
}
/**
 * Latest and published are specific in Elasticsearch to that extend that they are tagged in the __type property.
 * We allow either published or either latest.
 * Latest is used in the manage API and published in the read API.
 *
 *
 * We add the query.filter terms because we do not need scored search here and it is a bit faster.
 */
export declare const createInitialQuery: (params: Params) => OpenSearchBoolQueryConfig;
export {};
