import { AuthenticateOptions, Strategy } from "passport"; /** * @class PassportWrapper */ export default class PassportWrapper { options: Record; constructor(); /** * @param {{query: Object}}request * @param strategyName * @returns {Promise.<*>} */ authenticate(request: any, strategyName: string): Promise; /** * Exposes passport.use function * * @param {string} name - strategy name * @param {object} strategy - instantiated strategy object * @param {object} opts - options to provide to authenticate with the strategy */ use(name: string, strategy: Strategy, opts?: AuthenticateOptions): void; /** * Exposes passport.unuse, unregistering a strategy from kuzzle * * @param {string} name - name of the strategy to unregister */ unuse(name: string): void; }