123456789101112 |
- import { Delta, Transaction, NodeCreation, NodeDeletion, EdgeUpdate, Edge, ExistingEdge, NewEdge, ReadAllOutgoing } from "./delta";
- import { PrimitiveValue, UUID } from "./types";
- export declare class DeltaRegistry {
- deltas: Map<string, Delta>;
- private createIdempotent;
- newNodeCreation(id: UUID): NodeCreation;
- newReadAllOutgoing(node: NodeCreation, after: readonly NewEdge[]): ReadAllOutgoing;
- newNodeDeletion(creation: NodeCreation, afterSrc: readonly EdgeUpdate[], afterTgt: readonly EdgeUpdate[]): NodeDeletion;
- newEdgeUpdate(overwrites: Edge, target: NodeCreation | PrimitiveValue, reads?: readonly ExistingEdge[], afterReads?: readonly EdgeUpdate[]): EdgeUpdate;
- newTransaction(deltas: Array<Delta>, description: string, dependencies?: readonly [Transaction, string][]): Transaction;
- }
|