import { IncomingHttpHeaders } from 'node:http'; import { Oauth2AuthenticationManager } from '../../security/authn/oauth2-authn-manager'; import { ContextProvider, RequestContextData } from '../context/types/request-context.type'; import { AuthenticationHook } from './types/hook.type'; import { Logger } from '../..'; export declare class Oauth2AuthenticationHook implements AuthenticationHook { private authenticationManager; private contextProvider; private logger; constructor(opts: { authenticationManager: Oauth2AuthenticationManager; contextProvider: ContextProvider; logger: Logger; }); authenticate(): (request: { headers: IncomingHttpHeaders; query?: any; }) => Promise; }