import { Operation } from '../operators'; import { BaseIndex } from '../indexes'; import { GetOptions } from '../type-helpers'; /** * * Represents a database query. * */ export declare abstract class BaseQuery { readonly index: BaseIndex; constructor(index: BaseIndex); protected abstract operation(): Operation; /** * * @returns the query string (key expression) that can be sent to the database. * */ query(): string; /** * * @returns the options to be used when executing the query. * */ options(): GetOptions; /** * * Resolves the query and returns the raw result. * */ resolve(): Promise; }