import { StreamState , StreamStateHolder } from '@ceramicnetwork/common' ; import StreamID from '@ceramicnetwork/streamid' ; export interface StateStore { open ( networkName ) : void ; close ( ) : Promise < void > ; save ( streamStateHolder ) : Promise < void > ; load ( streamId ) : Promise < StreamState | null > ; list ( streamId ? ) : Promise < string [ ] > ; remove ( streamId ) : Promise < void > ; }