UNPKG

@ceramicnetwork/core

Version:

Typescript implementation of the Ceramic protocol

13 lines 571 B
import { Observable } from 'rxjs'; import { StreamID } from '@ceramicnetwork/streamid'; import { StreamState, RunningStateLike } from '@ceramicnetwork/common'; export declare class StateLink extends Observable<StreamState> implements RunningStateLike { private readonly initial; private readonly state$; constructor(initial: StreamState, update$?: (init: StreamState) => Observable<StreamState>); next(state: StreamState): void; get state(): StreamState; get value(): StreamState; get id(): StreamID; } //# sourceMappingURL=state-link.d.ts.map