If you are trying to save your files, the put the laptop into Target Disk Mode and connect it to another Mac. You can also remove the drive and connect it to another Mac using a USB to SATA Adapter, drive dock, or enclosure.
You can try booting into Internet Recovery Mode using Command + Option + R. If you can boot a macOS installer, then you can install macOS to an external USB drive which you can boot to so that you can try to access the data on the internal drive.
If you have access to another Mac capable of running macOS 10.11 or 10.13, then you can create a bootable macOS USB installer.
You use a retail version of OSX 10.6 Snow Leopard to install to an external drive, then upgrade to 10.13. It is dangerous to get a Snow Leopard .dmg online since you never know if it is complete or if it may also contain some nasty surprises. Apple never provided Snow Leopard in .dmg format.
If you are installing macOS 10.11+, then you will need to erase the physical drive before installing macOS. If you are installing macOS 10.6 to 10.10, then you need to partition & format the whole physical drive.
If you ended up erasing the SSD, then your data is gone for good unless you had a backup.
If you value your data, then you should always have frequent & regular backups. FYI, it is impossible to recover accidentally deleted data from an SSD after the Trash has been emptied plus an SSD can fail at any time without any warning signs (even a brand new SSD). Plus with the 2018+ Macs it is very difficult to impossible to recover data from a 2018+ Mac if anything goes wrong with the Mac.