Create an export for a component so that its service can be used by other modules.
To use interfaces from a library, you will have to open the module with the dependency editor and add a dependency on the library. You will be prompted if the dependency has to be set.