/** * Mexico MPC (Mutuo, Préstamos y Créditos) Transaction * * Specialized for loan/credit transactions. */ import type { mpc } from "@artu-ai/shared"; import { MexAVTransaction } from "../MexAVTransaction"; /** * Mexico MPC Transaction Model. * * Provides typed accessors for loan/credit transaction data. * MPC transactions have a `collateral[]` array (only for ConGarantia operations) * and a `disbursements[]` array (fund-release records). * * @example * ```typescript * if (txn instanceof MexMPCTransaction) { * console.log(`Operation: ${txn.operationType}`); * console.log(`Postal Code: ${txn.postalCode}`); * console.log(`Collateral: ${txn.collateral.length}`); * console.log(`Disbursements: ${txn.disbursements.length}`); * } * ``` */ export declare class MexMPCTransaction extends MexAVTransaction { /** * MPC-specific transaction data */ protected get mpcData(): mpc.MPCTransactionData | undefined; /** * Operation type: "401" (SinGarantia) or "402" (ConGarantia) */ get operationType(): string | undefined; /** * Postal code where the operation took place */ get postalCode(): string | undefined; /** * Array of collateral entries for this transaction. * Empty for SinGarantia (401) operations. */ get collateral(): mpc.MPCCollateral[]; /** * Whether this transaction carries any collateral. */ get hasCollateral(): boolean; /** * Total number of collateral entries. */ get collateralCount(): number; /** * Array of disbursements (fund-release records) for this transaction. */ get disbursements(): mpc.MPCDisbursementData[]; /** * Whether this transaction has any disbursements. */ get hasDisbursements(): boolean; /** * Total number of disbursements in this transaction. */ get disbursementsCount(): number; /** * Total disbursement amount across all disbursements. */ get totalDisbursementAmount(): number; toString(): string; } import type { TransactionModel } from "../../../types"; /** * Check if transaction is an MPC (Mutuo, Préstamos y Créditos) transaction */ export declare function isMexMPCTransaction(txn: TransactionModel): txn is MexMPCTransaction;