import IAccessToken from "../entity/IAccessToken" ; export interface IAuthenticationResponse { readonly accessToken : IAccessToken ; } interface IAuthenticationBackendApi { param { string } username param { string } password returns { Promise < IAuthenticationResponse > } throws authenticate ( username , password ) : Promise < IAuthenticationResponse > ; deauthenticate ( accessTokenId ) : Promise < void > ; } export default IAuthenticationBackendApi ;