Is there a figma API which can return the CSS of the selected node?

I want to traverse the node tree and extract the css (code output) of each node. I want to know if there are any APIs that figma provides out of the box for the same. There is no mention of anything like that in the docs.

I know there are plugin which currently do the same but its not helpful to me as I’m building a plugin of my own for a specific use case which requires this css extraction