import { AppMountParameters , CoreStart } from 'kibana/public' ; import { createContext } from 'react' ; import { ObservabilityPublicPluginsStart } from '../plugin' ; import { ConfigSchema } from '..' ; import { ObservabilityRuleTypeRegistry } from '../rules/create_observability_rule_type_registry' ; import type { LazyObservabilityPageTemplateProps } from '../components/shared/page_template/lazy_page_template' ; export interface PluginContextValue { appMountParameters : AppMountParameters ; config : ConfigSchema ; core : CoreStart ; plugins : ObservabilityPublicPluginsStart ; observabilityRuleTypeRegistry : ObservabilityRuleTypeRegistry ; ObservabilityPageTemplate : React . ComponentType < LazyObservabilityPageTemplateProps > ; } export const PluginContext = createContext ( { } as PluginContextValue ) ;