import { Provider } from 'oidc-provider'; import { IContext } from '../config/icontext'; import type { IConfig } from '../config/iconfig'; import type { Request, Response } from 'express'; /** * Method to instantiate the OIDC provider (core of the proxy). * * @author Kenble - f.taddia * @param config : application configuration * @returns returns the successfully instantiated OIDC provider */ export declare function createOidcProvider(config: IConfig): Provider; /** * Method to finalize the authentication flow. * * @author Kenble - f.taddia * @param req : HTTP request for authentication * @param res : HTTP response for authentication * @param context : application context to invoke the end of the authentication flow to the OIDC provider */ export declare function finishLogin(req: Request, res: Response, context: IContext): Promise;