import { AppMountParameters , CoreStart } from 'kibana/public' ; import { createContext } from 'react' ; import type { ObservabilityRuleTypeRegistry } from '../../../../observability/public' ; import { ConfigSchema } from '../..' ; import { ApmPluginSetupDeps } from '../../plugin' ; import { MapsStartApi } from '../../../../maps/public' ; import { ObservabilityPublicStart } from '../../../../observability/public' ; import { Start as InspectorPluginStart } from '../../../../../../src/plugins/inspector/public' ; export interface ApmPluginContextValue { appMountParameters : AppMountParameters ; config : ConfigSchema ; core : CoreStart ; inspector : InspectorPluginStart ; plugins : ApmPluginSetupDeps & { maps ? : MapsStartApi ; } ; observabilityRuleTypeRegistry : ObservabilityRuleTypeRegistry ; observability : ObservabilityPublicStart ; } export const ApmPluginContext = createContext ( { } as ApmPluginContextValue ) ;