Add new Variant property with variant options

Is there a way to add a new variant component property and define its list of variant options? I see addComponentProperty and editComponentProperty but there doesn’t seem to be an obvious way to add a variant typed property and set the options.

Thanks in advance.

If I understood correctly, then just rename all the children (variants) in the component set.