Settings → Chats → Backups. Of course it's only designed to be restored by Signal instead of e.g. giving you plain text to grep through.
WhatsApp allows easy plain text export, which is much more usable. The fact that Signal doesn't support such a basic feature is, IMO, inexcusable.
One should never assume that communication won't be backed up / screenshotted / etc.
Recipient's phone could also be compromised. There are various threat scenarios. But having plaintext backups would make it very likely that your communications are mostly insecure.