Is it like ledger's effective dates? https://ledger-cli.org/doc/ledger3.html#Effective-Dates
Just recently I bought an item on sale for 15 Euros with a card in Sterling (my bank did the currency conversion). Pretty much immediately after paying, though, I exchanged it for a different item for 25 Euros, making up the difference in cash. The cash is obviously 'cleared' instantly but the card payment could clear later. That said, in this case it happened to clear the same day anyway so no special posting date was required.
2025-08-10 Redacted
Expenses: Redacted 13.03 GBP
Expenses: Redacted 10 EUR
Assets: Bank -13.03 GBP
Assets: Cash -10 EUR
I suppose the main question is at what point these splits become complex enough to create a dedicated liabilities account specifically to track the payment of that one expense, à la accounts payable, which you can of course do with any plain text ledger.