import { FactRecord , FactSignature } from "./storage" ; export interface UserIdentity { provider : string ; id : string ; } export interface Keystore { getUserFact ( userIdentity ) : Promise < FactRecord > ; getDeviceFact ( userIdentity ) : Promise < FactRecord > ; signFact ( userIdentity , fact ) : Promise < FactSignature [ ] > ; }