import { Query, QuerySnapshot } from "firebase/firestore"; import { IDocumentSnapshot, IQuerySnapshot, IEntity } from "./types/collection.types"; import { IFieldMeta } from "./types/field.types"; import { ICollectionQuery, ICollection, IDocumentRef } from "./types"; import Entity from "./Entity"; export declare const collection_: (model: new () => T, parent?: IDocumentRef

| undefined) => ICollection; export declare const createDoc_: (col: ICollection, entity: T) => Promise; export declare const getDoc_: (col: ICollection, id: string) => Promise; export declare const getDocByRef_: (ref: IDocumentRef) => Promise; export declare const doc_: (col: ICollection, id: string) => IDocumentRef; export declare const removeDoc_: (col: ICollection, id: string) => Promise; export declare const queryDocs_: (col: ICollection) => any; export declare const findDocs_: (col: ICollection, query?: ICollectionQuery | undefined) => Promise; export declare const updateDoc_: (col: ICollection, entity: T) => Promise; export declare const onSnapshotDoc_: (entity: T, onNext: (snapshot: IDocumentSnapshot) => void, onError?: ((e: Error) => void) | undefined) => (() => void); export declare const onSnapshotDocs_: (query: any, onNext: (snapshot: any) => void, onError?: ((e: Error) => void) | undefined) => (() => void); export declare const docsBuilder_: (collection: ICollection, fields: Map, query: ICollectionQuery) => Query; export declare const getDocsBuilder_: (query: Query) => Promise>;