Is luasnip capable of recognize selected text and use it?

The vscode snippets have $TM_SELECTED_TEXT, I would know how to use this feature. I have friendly-snippets installed and some personal snippets from snipmate.

What are the possibilities? Can you help me?