import { Result } from '@kizahasi/result'; import { r, i, d, ComposeAndTransformError, PositiveInt, Operation } from '@kizahasi/ot-core'; import { NonEmptyString } from '../nonEmptyString'; export type TwoWayOperation = Operation; export type TwoWayOperationUnit = { t: typeof r; r: number; } | { t: typeof i; i: string; } | { t: typeof d; d: string; }; export declare const diff: ({ prevState, nextState, }: { prevState: string; nextState: string; }) => TwoWayOperation; export declare const transform: ({ first, second, }: { first: TwoWayOperation; second: TwoWayOperation; }) => Result<{ firstPrime: TwoWayOperation; secondPrime: TwoWayOperation; }, ComposeAndTransformError>; export declare const toUnit: (source: TwoWayOperation) => TwoWayOperationUnit[]; export declare const ofUnit: (source: ReadonlyArray) => TwoWayOperation; export declare const toUpOperation: (source: TwoWayOperation) => Operation; export declare const toDownOperation: (source: TwoWayOperation) => Operation; //# sourceMappingURL=twoWayOperation.d.ts.map