import { Reporter , Storage } from '@osd/analytics' ; import { HttpSetup } from 'opensearch-dashboards/public' ; interface AnalyicsReporterConfig { localStorage : Storage ; debug : boolean ; fetch : HttpSetup ; } export function createReporter ( config ) { const { localStorage , debug } = config ; return new Reporter ( { debug , storage : localStorage , } ) ; }