How to create interface for custom components?

Hey

Want to create a custom component which implements some interface as mentioned in https://developer.roku.com/docs/references/brightscript/interfaces/ifappinfo.md.

So is there any way to create interface and make the custom component implement it. Please let me know what should be the approach.