import { NamespacedIndex, AnonymousIndex, NamespacedPrimaryIndex, NamespacedSecondaryIndex, AnonymousPrimaryIndex, AnonymousSecondaryIndex } from '../indexes'; import { PrimaryExact, SecondaryExact } from './exact'; import { MultiQuery } from './multi'; import { Between, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Partial } from './operators'; /** * * Represents a query on a namespace with potentially multiple results. * */ export declare class NamespacedAll extends MultiQuery { constructor(i: NamespacedIndex); /** * * @returns a query with items that are less than given value. * */ lessThan(t: T): LessThan; /** * * @returns a query with items that are greater than the given value. * */ greaterThan(t: T): GreaterThan; /** * * @returns a query with items that are less than or equal to the given value. * */ leq(t: T): LessThanOrEqual; /** * * @returns a query with items that are greater than or equal to the given value. * */ geq(t: T): GreaterThanOrEqual; /** * * @returns a query with items that are between the given values. * */ between(a: T, b: T): Between; /** * * @returns a query with items starting with given value. * */ partial(t: T): Partial; /** * * @returns a query with items that are less than the given value. * */ before(t: T): LessThan; /** * * @returns a query with items that are greater than the given value. * */ after(t: T): GreaterThan; /** * * @returns a query with items that start with given value. * */ startsWith(t: T): Partial; } /** * * Represent a query on a namespace with potentially multiple results, * indexed by a primary index. * */ export declare class NamespacedPrimaryAll extends NamespacedAll { constructor(i: NamespacedPrimaryIndex); /** * * @returns a query resolving to the object with given value. * */ exact(t: T): PrimaryExact; /** * * @returns a query resolving to the object with given value. * */ equals(t: T): PrimaryExact; } /** * * Represent a query on a namespace with potentially multiple results, * indexed by a secondary index. * */ export declare class NamespacedSecondaryAll extends NamespacedAll { constructor(i: NamespacedSecondaryIndex); /** * * @returns a query with all items matching given value. * */ exact(t: T): SecondaryExact; /** * * @returns a query with all items matching given value. * */ equals(t: T): SecondaryExact; } /** * * Represent a query multiple results without a namespace. * */ export declare class AnonymousAll extends MultiQuery { constructor(i: AnonymousIndex); } /** * * Represent a query multiple results without a namespace, * indexed by a primary index. * */ export declare class AnonymousPrimaryAll extends AnonymousAll { constructor(i: AnonymousPrimaryIndex); /** * * @returns a query resolving to the object with given value. * */ exact(t: T): PrimaryExact; /** * * @returns a query resolving to the object with given value. * */ equals(t: T): PrimaryExact; } /** * * Represent a query multiple results without a namespace, * indexed by a secondary index. * */ export declare class AnonymousSecondaryAll extends AnonymousAll { constructor(i: AnonymousSecondaryIndex); /** * * @returns a query with all items matching given value. * */ exact(t: T): SecondaryExact; /** * * @returns a query with all items matching given value. * */ equals(t: T): SecondaryExact; }