import { KibanaRequest } from 'kibana/server' ; export interface AuthorizationHeader { headers ? : { 'es-secondary-authorization' : string | string [ ] ; } ; } export function getAuthorizationHeader ( request ) { return request . headers . authorization === undefined ? { } : { headers : { 'es-secondary-authorization' : request . headers . authorization } , } ; }