import type { HashFunction, InternalStoreDocType, RxDatabase, RxDocumentData, RxStorage, RxStorageInstance, RxStorageInstanceCreationParams } from './types'; import type { RxSchema } from './rx-schema'; /** * fills in the default data. * This also clones the data. */ export declare function fillObjectDataBeforeInsert(schema: RxSchema, data: Partial> | any): RxDocumentData; /** * Creates the storage instances that are used internally in the collection */ export declare function createRxCollectionStorageInstance(rxDatabase: RxDatabase<{}, Internals, InstanceCreationOptions>, storageInstanceCreationParams: RxStorageInstanceCreationParams): Promise>; /** * Removes the main storage of the collection * and all connected storages like the ones from the replication meta etc. */ export declare function removeCollectionStorages(storage: RxStorage, databaseInternalStorage: RxStorageInstance, any, any>, databaseInstanceToken: string, databaseName: string, collectionName: string, /** * If no hash function is provided, * we assume that the whole internal store is removed anyway * so we do not have to delete the meta documents. */ hashFunction?: HashFunction): Promise;