componentLibrary

Hi all. through componentLibrary I have connected a self-described component to my project, and I want to interact with it through an interface that I will write in my main project. is there any possibility to change my connected component, for example, to add a button to it, when you press which will give focus to another component that is in my main project, while the interface of interaction with it in the main project will not change, that is, to make it so that I can change the connected component, but do not change the project where it is connected.