UNPKG

alinea

Version:
13 lines (12 loc) 575 B
import type { ChangesBatch } from './Change.js'; import type { Source } from './Source.js'; import { ReadonlyTree } from './Tree.js'; export declare class MemorySource implements Source { #private; constructor(tree?: ReadonlyTree, blobs?: Map<string, Uint8Array>); getTree(): Promise<ReadonlyTree>; getTreeIfDifferent(sha: string): Promise<ReadonlyTree | undefined>; getBlobs(shas: Array<string>): AsyncGenerator<[sha: string, blob: Uint8Array]>; addBlob(contents: Uint8Array): Promise<string>; applyChanges(batch: ChangesBatch): Promise<void>; }