import { HasId, QueryKey, DocumentSnapshot, QuerySnapshot, WhereFilterOp, OrderByDirection, Query as FirestoreQuery } from './types'; import { Converter } from './converter'; import { Context } from './context'; export declare class Query { converter: Converter; context: Context; query: FirestoreQuery; constructor(converter: Converter, context: Context, query: FirestoreQuery); where(fieldPath: QueryKey, opStr: WhereFilterOp, value: any): this; orderBy(fieldPath: QueryKey, directionStr?: OrderByDirection): this; limit(limit: number): this; startAt(snapshot: DocumentSnapshot): Query; startAt(...fieldValues: any[]): Query; startAfter(snapshot: DocumentSnapshot): Query; startAfter(...fieldValues: any[]): Query; endAt(snapshot: DocumentSnapshot): Query; endAt(...fieldValues: any[]): Query; endBefore(snapshot: DocumentSnapshot): Query; endBefore(...fieldValues: any[]): Query; fetch(): Promise; onSnapshot(callback: (querySnapshot: QuerySnapshot, toObject: (documentSnapshot: DocumentSnapshot) => T) => void): () => void; }