export type TokenInfo = { active: boolean; scope: string; exp: number; client_id: string; }; export interface Oauth2Service { introspectToken(opts: { url: string; clientId: string; clientSecret: string; token: string; }): Promise; }