Get page selected page attribute template

I am trying to work with gutenberg and I have a big issue.

I need to get in javascript while using the page editor not the post editor the page template name.

With post I found that it is possible to get the post format with:‘core/editor’).getEditedPostAttribute(‘format’) , this will return the current post format in javascript.

I could not find how to get the current template name from page attributes. Any help is appreciated it I am running out of ideas.

Thank you.