import type { BulkWriteRow, RxDocumentData, RxDocumentWriteData, RxStorageInstance, RxStorageInstanceReplicationState, RxStorageReplicationMeta, WithDeletedAndAttachments } from '../types/index.d.ts'; export declare function docStateToWriteDoc(databaseInstanceToken: string, hasAttachments: boolean, keepMeta: boolean, docState: WithDeletedAndAttachments, previous?: RxDocumentData): RxDocumentWriteData; export declare function writeDocToDocState(writeDoc: RxDocumentData, keepAttachments: boolean, keepMeta: boolean): WithDeletedAndAttachments; export declare function stripAttachmentsDataFromMetaWriteRows(state: RxStorageInstanceReplicationState, rows: BulkWriteRow>[]): BulkWriteRow>[]; export declare function getUnderlyingPersistentStorage(instance: RxStorageInstance): RxStorageInstance;