@dstanesc/o-o-o-o-o-o-o
Version:
O-O-O-O-O-O-O is a collection of content addressed persistent data structures
21 lines • 741 B
TypeScript
import { BlockStore } from './block-store';
import { Link, RootIndex, Block } from './types';
import { LinkCodec, ValueCodec } from './codecs';
declare enum MergePolicyEnum {
LastWriterWins = 0,
MultiValueRegistry = 1
}
declare const merge: ({ baseRoot, baseStore, currentRoot, currentStore, otherRoot, otherStore, }: {
baseRoot: Link;
baseStore: BlockStore;
currentRoot: Link;
currentStore: BlockStore;
otherRoot: Link;
otherStore: BlockStore;
}, policy: MergePolicyEnum, chunk: (buffer: Uint8Array) => Uint32Array, linkCodec: LinkCodec, valueCodec: ValueCodec) => Promise<{
root: Link;
index: RootIndex;
blocks: Block[];
}>;
export { merge, MergePolicyEnum };
//# sourceMappingURL=merge.d.ts.map