Opt out and use the CML.

Lucid is built on the cardano-multiplatform-lib (CML), but utilizes a customized fork that can be accessed here. If Lucid doesn't offer an API that meets your specific needs, you have the option to use the CML directly:

import { C } from "";

const output: C.TransactionOutput =