import { EthApi } from "@joincivil/ethapi" ; import { ContentData , StorageHeader } from "@joincivil/typescript-types" ; export interface ContentProvider { scheme ( ) : string ; get ( what ) : Promise < ContentData > ; put ( content , variables ? ) : Promise < StorageHeader > ; } export interface ContentProviderOptions { ethApi : EthApi ; } export type ContentProviderCreator = new ( options ) => ContentProvider ;