import Client from '../Client'; import QueriedDocs from './QueriedDocs'; import Document from './Document'; declare class Collection { #private; constructor(client: Client, name: string); /** * Assigns the query to be ready before getting the docs * * @param query object * * @return self */ where: (query: any) => { get: () => Promise; }; /** * Adds a single doc to the collection * * @param doc object * * @return Promise */ add: (doc: object) => Promise; /** * Gets a single doc of the collection * * @param id string * * @return Promise */ doc: (id: string) => Promise; /** * Gets gets all the docs that the where got or all in general * * @param id string * * @return Promise */ get: () => Promise; } export = Collection;