@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
13 lines • 627 B
TypeScript
import { BlockStore } from './block-store';
import { LinkCodec } from './codecs';
import { Link } from './types';
/**
* Provides ability to load and push complete versions from and to another block store.
*/
interface StagingBlockStore extends BlockStore {
pushVersion: (versionRoot: Link, otherStore: BlockStore) => Promise<void>;
loadVersion: (versionRoot: Link, fromStore: BlockStore) => Promise<void>;
}
declare const stagingBlockStoreFactory: (linkCodec: LinkCodec, stage: BlockStore) => StagingBlockStore;
export { StagingBlockStore, stagingBlockStoreFactory };
//# sourceMappingURL=block-store-staging.d.ts.map