UNPKG

@thesaasdevkit/rtc-core

Version:

Core operational transform algorithms and shared data types for RTCC

21 lines 929 B
/** * Operational Transformation algorithms for text operations * Based on proven OT algorithms from literature */ import { TransformResult } from '../types/base.js'; import { TextOperationType } from '../types/text-operations.js'; /** * Transform operation A against operation B * This implements the core OT transformation logic for text */ export declare function transformTextOperation(operationA: TextOperationType, operationB: TextOperationType): TransformResult<TextOperationType>; /** * Check if two text operations conflict */ export declare function textOperationsConflict(operationA: TextOperationType, operationB: TextOperationType): boolean; /** * Compose multiple text operations into a single operation * This is useful for optimizing operation sequences */ export declare function composeTextOperations(operations: TextOperationType[]): TextOperationType[]; //# sourceMappingURL=text-transform.d.ts.map