import type { SavedObjectsClientWrapperFactory , SavedObjectsClientWrapperOptions , } from 'src/core/server' ; import type { SpacesServiceStart } from '../spaces_service/spaces_service' ; import { SpacesSavedObjectsClient } from './spaces_saved_objects_client' ; export function spacesSavedObjectsClientWrapperFactory ( getSpacesService ) { return ( options ) => new SpacesSavedObjectsClient ( { baseClient : options . client , request : options . request , getSpacesService , typeRegistry : options . typeRegistry , } ) ; }