import { MemoExplanation } from '../explain/ExplainMemo'; import { MetadataExplanation } from '../explain/ExplainMetadata'; import { MultiSignatureExplanation } from '../explain/ExplainMultiSignature'; import { Explanation } from '../explain/Explanation'; import { Flag } from '../flag'; import Transaction from '../types/Transaction'; import TransactionType from '../types/TransactionType'; /** * The base annotation for all annotations. * * @property type - The type of the transaction. * * @property date - An explanation of the date. * @property hash - An explanation of the hash. * @property ledgerHash - An explanation of the ledger_hash. * @property ledgerIndex - An explanation of the ledger_index. * @property meta - An explanation of the meta. * @property validated - An explanation of the validated. * * @property account - An explanation of the Account. * @property accountTxnID - An explanation of the AccountTxnID. * @property fee - An explanation of the Fee. * @property flags - An explanation of the Flags. * @property lastLedgerSequence - An explanation of the LastLedgerSequence. * @property memos - An explanation of the Memos. * @property sequence - An explanation of the Sequence. * @property signers - An explanation of the Signers. * @property signingPubKey - An explanation of the SigningPubKey. * @property sourceTag - An explanation of the SourceTag. * @property transactionType - An explanation of the TransactionType. * @property txnSignature - An explanation of the TxnSignature. */ export interface BaseAnnotation { readonly type: TransactionType; readonly date?: Explanation; readonly hash: Explanation; readonly ledgerHash?: Explanation; readonly ledgerIndex?: Explanation; readonly meta: MetadataExplanation; readonly validated: Explanation; readonly account: Explanation; readonly accountTxnID?: Explanation; readonly fee: Explanation; readonly flags: Explanation; readonly lastLedgerSequence?: Explanation; readonly memos?: Explanation; readonly sequence: Explanation; readonly signers?: Explanation; readonly signingPubKey: Explanation; readonly sourceTag?: Explanation; readonly transactionType: Explanation; readonly txnSignature: Explanation; } /** * Takes a transaction object and returns an annotated transaction object. * The returned object contains explanations about the various transaction features. * * @param txn - The input transaction. * @returns An annotated transaction object detailing the various transaction features. */ export declare function annotate(txn: Transaction): BaseAnnotation; //# sourceMappingURL=BaseAnnotation.d.ts.map