import { OpenSearchDashboardsRequest , ensureRawRequest , LegacyRequest } from './router' ; import { AuthHeaders } from './lifecycle/auth' ; param request OpenSearchDashboardsRequest - an incoming request.
 *  return authentication headers  AuthHeaders for - an incoming request.
 *  public export type GetAuthHeaders = ( request : OpenSearchDashboardsRequest | LegacyRequest ) => AuthHeaders | undefined ; internal export class AuthHeadersStorage { private authHeadersCache = new WeakMap < LegacyRequest , AuthHeaders > ( ) ; public set = ( request , headers ) => { this . authHeadersCache . set ( ensureRawRequest ( request ) , headers ) ; } ; public get : GetAuthHeaders = ( request ) => { return this . authHeadersCache . get ( ensureRawRequest ( request ) ) ; } ; }