UNPKG

@ceramicnetwork/common

Version:
10 lines 680 B
import type { StreamID } from '@ceramicnetwork/streamid'; import { CreateOpts, LoadOpts, UpdateOpts, CeramicCommit, Stream, AnchorOpts } from './index.js'; import type { IntoSigner } from './ceramic-signer.js'; import type { AnchorStatus } from './index.js'; export interface StreamWriter extends IntoSigner { createStreamFromGenesis<T extends Stream>(type: number, genesis: any, opts?: CreateOpts): Promise<T>; applyCommit<T extends Stream>(streamId: StreamID | string, commit: CeramicCommit, opts?: UpdateOpts): Promise<T>; requestAnchor(streamId: StreamID | string, opts?: LoadOpts & AnchorOpts): Promise<AnchorStatus>; } //# sourceMappingURL=stream-writer.d.ts.map