import type { CoreSetup , Logger } from 'src/core/server' ; import type { PluginsStart } from '../plugin' ; import type { SpacesServiceStart } from '../spaces_service' ; import { capabilitiesProvider } from './capabilities_provider' ; import { setupCapabilitiesSwitcher } from './capabilities_switcher' ; export const setupCapabilities = ( core , getSpacesService , logger ) => { core . capabilities . registerProvider ( capabilitiesProvider ) ; core . capabilities . registerSwitcher ( setupCapabilitiesSwitcher ( core , getSpacesService , logger ) ) ; } ;