How to add / write a custom provider

Hi I am interested in adding another cloud provider to serverless, but I couldn’t find any docs on it. Is there a plugin sdk to write custom providers ?