import { ProvidedType } from '@kbn/test' ; import { FtrProviderContext } from '../../ftr_provider_context' ; export const COMMON_REQUEST_HEADERS = { 'kbn-xsrf' : 'some-xsrf-token' , } ; export type MlCommonAPI = ProvidedType < typeof MachineLearningCommonAPIProvider > ; export function MachineLearningCommonAPIProvider ( { } ) { return { async getCommonRequestHeader ( ) { return COMMON_REQUEST_HEADERS ; } , } ; }