import type { RxDocumentData } from '../../types/index.d.ts'; /** * Parses the full revision. * Do NOT use this if you only need the revision height, * then use getHeightOfRevision() instead which is faster. */ export declare function parseRevision(revision: string): { height: number; hash: string; }; /** * @hotPath Performance is very important here * because we need to parse the revision height very often. * Uses indexOf + charCodeAt for maximum performance. * Single-digit heights (most common) use a fast path * that avoids parseInt entirely. */ export declare function getHeightOfRevision(revision: string): number; /** * Creates the next write revision for a given document. */ export declare function createRevision(databaseInstanceToken: string, previousDocData?: RxDocumentData): string;