import { StoreCollectionsDefinition } from "../../types"; import { storeScopeEnum } from "../storage/storeScopeEnum"; /** * Wrapper around the document store. * Once instantiated, this class can only access the index passed in the * constructor */ export declare class Store { count: (...args: any[]) => Promise; create: (...args: any[]) => Promise; createCollection: (...args: any[]) => Promise; createOrReplace: (...args: any[]) => Promise; delete: (...args: any[]) => Promise; deleteByQuery: (...args: any[]) => Promise; deleteCollection: (...args: any[]) => Promise; deleteFields: (...args: any[]) => Promise; deleteIndex: (...args: any[]) => Promise; exists: (...args: any[]) => Promise; get: (...args: any[]) => Promise; getMapping: (...args: any[]) => Promise; getSettings: (...args: any[]) => Promise; mExecute: (...args: any[]) => Promise; mGet: (...args: any[]) => Promise; multiSearch: (...args: any[]) => Promise; refreshCollection: (...args: any[]) => Promise; replace: (...args: any[]) => Promise; search: (...args: any[]) => Promise; scroll: (...args: any[]) => Promise; truncateCollection: (...args: any[]) => Promise; update: (...args: any[]) => Promise; updateByQuery: (...args: any[]) => Promise; updateCollection: (...args: any[]) => Promise; updateMapping: (...args: any[]) => Promise; index: string; scope: storeScopeEnum; private readonly logger; constructor(index: string, scope: storeScopeEnum); /** * Initialize the index, and creates provided collections */ init(collections?: StoreCollectionsDefinition): Promise; /** * Creates collections with the provided mappings * * @param {Object} collections - collections with mappings * * @returns {Promise} */ createCollections(collections: StoreCollectionsDefinition, { indexCacheOnly }?: { indexCacheOnly?: boolean; }): Promise; }