import { Observable } from 'rxjs' ; import { SignInResult } from '../entity' ; export interface AuthenticationRepository { summary credential param credential return signIn ( credential ) : Observable < SignInResult > ; summary param key returns getToken ( ) : Observable < string > ; summary param key param token returns saveToken ( key , token ) : Observable < boolean > ; }