import type { StructuralMutationReceipt } from '../../@types/index.js'; import type { DocumentLifecycleContext } from './context.js'; /** Flat ordering and any sibling-key repairs share one guarded transaction. */ export declare function reorderDocument(ctx: DocumentLifecycleContext, params: { documentId: string; expectedRevision: number; beforeDocumentId?: string | null; afterDocumentId?: string | null; }): Promise;