import { Operation } from '../operators'; import { BaseIndex } from '../indexes'; import { Hydratable, ModelConstructor } from '../hydrate'; import { BaseQuery } from './base'; export interface MultiQueryOptions { start?: T; reverse?: boolean; limit?: number; } /** * * Represents a query with potentially multiple results. * */ export declare class MultiQuery extends BaseQuery { readonly op: Operation; readonly opts: MultiQueryOptions; constructor(i: BaseIndex, op: Operation, opts?: MultiQueryOptions); protected operation(): Operation; /** * * @returns a query with items returned in reverse order. * */ reverse(): MultiQuery; /** * * @returns a query with items starting after given value. Useful for pagination. * */ start(start: T): MultiQuery; /** * * @returns a query with a limited number of results. * */ limit(limit: number): MultiQuery; options(): import("../type-helpers").GetOptions; /** * * Resolves the query using given model constructor, and returns a list of hydrated models. * */ get(constructor: ModelConstructor): Promise; /** * * Resolves the given query, returning all matching keys. * */ keys(): Promise; }