import Scope from '../constants/scope'; import Identifiable from './identifiable'; export default class Token implements Identifiable { readonly id: string; readonly token: string; readonly type: string; readonly scope: Scope[]; readonly expiryDate: Date; readonly userId: string; constructor(token: { token: string; type: string; expiryDate: Date; scope?: Scope[]; userId: string; }); getTimeToLiveInSeconds(): number; }