import type { DeepReadonly, RxDocumentData, RxDocumentMeta, StringKeys, WithDeleted, WithDeletedAndAttachments } from '../../types/index.d.ts'; /** * We use 1 as minimum so that the value is never falsy. * This const is used in several places because querying * with a value lower than the minimum could give false results. */ export declare const RX_META_LWT_MINIMUM = 1; export declare function getDefaultRxDocumentMeta(): RxDocumentMeta; /** * Returns a revision that is not valid. * Use this to have correct typings * while the storage wrapper anyway will overwrite the revision. */ export declare function getDefaultRevision(): string; export declare function stripMetaDataFromDocument(docData: RxDocumentData): RxDocType; /** * Faster way to check the equality of document lists * compared to doing a deep-equal. * Here we only check the ids and revisions. */ export declare function areRxDocumentArraysEqual(primaryPath: StringKeys>, ar1: RxDocumentData[], ar2: RxDocumentData[]): boolean; export declare function getSortDocumentsByLastWriteTimeComparator(primaryPath: string): (a: RxDocumentData, b: RxDocumentData) => number; export declare function sortDocumentsByLastWriteTime(primaryPath: string, docs: RxDocumentData[]): RxDocumentData[]; type AnyDocFormat = RxDocType | WithDeleted | RxDocumentData | WithDeletedAndAttachments; export declare function toWithDeleted(docData: AnyDocFormat | DeepReadonly>): WithDeleted; export {};