import { AxioDBCloud } from './AxioDBCloud.client'; import ReaderProxy from './ReaderProxy'; import UpdateOperationProxy from './UpdateOperationProxy'; import DeleteOperationProxy from './DeleteOperationProxy'; import AggregationProxy from './AggregationProxy'; /** Mirrors the Collection class API. */ export default class CollectionProxy { private client; private dbName; private collectionName; constructor(client: AxioDBCloud, dbName: string, collectionName: string); insert(data: object): Promise; insertMany(documents: object[]): Promise; query(query: object): ReaderProxy; update(query: object): UpdateOperationProxy; delete(query: object): DeleteOperationProxy; aggregate(pipeline: object[]): AggregationProxy; totalDocuments(): Promise; newIndex(...fieldNames: string[]): Promise; dropIndex(indexName: string): Promise; listIndexes(): Promise; get name(): string; }