import Transaction from './types/Transaction'; declare type RawTransaction = { [key: string]: unknown; } & { TransactionType?: string; tx?: { [key: string]: unknown; } & { TransactionType?: string; }; validated?: boolean; }; export { RawTransaction }; /** * Converts a raw JSON transaction into a Transaction object. * Accounts for small changes between the raw JSON and Transaction type. * Namely, converts the string TransactionType field into an enum, * and adds { validated: true } if the validated field is not provided. * * @throws Throws an error if input is missing tx and tx.TransactionType. * * @param rawTransaction - The transaction. * @returns The modified transaction. */ export default function rawJSONtoTransaction(rawTransaction: RawTransaction): Transaction; //# sourceMappingURL=rawJSONtoTransaction.d.ts.map