import DataSource from './data-source'; import { Entry, EntryOptions } from './messages'; export default class Writer { private dataSource; private stream; private pending; constructor(dataSource: DataSource, stream?: Entry[]); /** * Creates an entry and appends it to the stream. */ create(type: string, content: any, options?: EntryOptions): Entry; /** * Appends the provided entry to the stream. */ append(entry: Entry): Entry; private readyOptimisticStream; /** * Creates a patch entry and appends it to the stream. */ update(id: string, content: any, options?: EntryOptions): Entry | null; /** * Creates an entry with null content and appends it to * the stream. */ remove(id: string): boolean; /** * Writes the stream to the associated `DataSource`. */ commit(): Promise; } //# sourceMappingURL=writer.d.ts.map