import { StoreCollection_Slim, StoreCollection, StoreField, StoreIndex } from './collection'; import { StoreDocument, StoreList, StoreListOffset, StoreSelect } from './document'; import { StoreJoin, StoreLeftJoin } from './join'; import { StoreSort } from './sort'; import { StoreWhere } from './where'; export interface Store { listCollections(): Promise; describeCollection(options: StoreDescribeCollectionOptions): Promise; ensureCollection(options: StoreEnsureCollectionOptions): Promise; dropCollection(options: StoreDropCollectionOptions): Promise; find(options: StoreFindOptions): Promise; insert(options: StoreInsertOptions): Promise; update(options: StoreUpdateOptions): Promise; delete(options: StoreDeleteOptions): Promise; } export interface StoreDescribeCollectionOptions { collection: StoreCollection_Slim | StoreCollection; } export interface StoreEnsureCollectionOptions { collection: StoreCollection; indexes?: StoreIndex[] | null; fields?: StoreField[] | null; dropIndexes?: string[] | null; dropFields?: string[] | null; } export interface StoreDropCollectionOptions { collection: StoreCollection; } export interface StoreFindOptions { collection: StoreCollection; select?: StoreSelect | null; where?: StoreWhere | null; innerJoin?: StoreJoin | null; leftJoin?: StoreLeftJoin | null; limit: number; offset?: StoreListOffset | null; sort?: StoreSort | null; } export interface StoreInsertOptions { collection: StoreCollection; documents: StoreDocument[]; } export interface StoreUpdateOptions { collection: StoreCollection; where?: StoreWhere | null; set: StoreDocument; limit: number; } export interface StoreDeleteOptions { collection: StoreCollection; where?: StoreWhere | null; limit: number; } export interface StoreInsertionResponse extends StoreMutationResponse { insertedIds: StoreDocument[]; } export interface StoreMutationResponse { affectedCount: number; } //# sourceMappingURL=store.d.ts.map