import https = require ( 'https' ) ; import request = require ( 'request' ) ; import { User } from './config_types' ; export interface Authenticator { isAuthProvider ( user ) : boolean ; applyAuthentication ( user , opts ) : Promise < void > ; }