import { AggregateParameters, EsSearchBody } from "@pie-api-gcp/search/client"; import { ResultFunctionContext } from "../types"; export declare class SearchCursor { sortValues?: any[]; } export declare const decodeCursor: (encodedCursor: any) => SearchCursor; export declare const encodeCursor: (previousRow: any, sortKeys: string[]) => string; export declare function assembleSearchParams(args: any, info: any, { authInfo }: ResultFunctionContext, q: any): Promise<{ cursor: SearchCursor; size: any; aggregateParams: AggregateParameters; query: any; }>; /** * Run search against ElasticSearch. */ export declare const search: (args: any, context: ResultFunctionContext, info: any, type: string) => Promise<{ pageInfo: { startCursor: any; hasNextPage: boolean; hasPreviousPage: boolean; nextCursor: string; }; edges: { node: { [x: string]: import("@pie-api-gcp/datastore/types").SearchMetaData; metaData: import("@pie-api-gcp/datastore/types").SearchMetaData; }; cursor: string; }[]; aggregate: import("@pie-api-gcp/search/client").SearchAggregates; }>; /** * Produce ElasticSearch query. */ export declare const esQuery: (args: any, context: ResultFunctionContext, info: any, type: string) => Promise; //# sourceMappingURL=query.d.ts.map