/*! * Copyright (c) 2020 Ville de Montreal. All rights reserved. * Licensed under the MIT license. * See LICENSE file in the project root for full license information. */ import { IOidcSession, IOidcAuthenticatorConfig } from '@villedemontreal/auth-oidc'; import { ILogger, IHttpRequestCorrelator } from '@villedemontreal/auth-core'; /** * creates an interceptor that will configure the authenticator plugin for an API class * generated by https://openapi-generator.tech/docs/generators/typescript-node. * @param session the OIDC session * @param authenticatorConfig the authenticator options */ export declare function authInterceptor(session: IOidcSession, authenticatorConfig?: Readonly): (requestOptions: any) => Promise | void; /** * creates an interceptor that will configure the logger plugin for an API class * generated by https://openapi-generator.tech/docs/generators/typescript-node. * @param logger the logger */ export declare function requestLoggingInterceptor(logger: ILogger): (requestOptions: any) => Promise | void; /** * creates an interceptor that will configure the correlator plugin for an API class * generated by https://openapi-generator.tech/docs/generators/typescript-node. * @param correlator the request correlator */ export declare function requestCorrelationInterceptor(correlator: IHttpRequestCorrelator): (requestOptions: any) => Promise | void;