/** * Loan Status Constants * * Canonical loan lifecycle states matching the smart contract LoanStatus enum. * These values MUST match contracts/src/libraries/LoanStatus.sol exactly. * * @see contracts/src/libraries/LoanStatus.sol */ /** * Loan lifecycle status enum * * Matches Solidity enum from LoanStatusLib.LoanStatus */ export declare enum LoanStatus { /** Loan created, awaiting BTC deposit */ PENDING_DEPOSIT = 0, /** BTC deposited, awaiting UCD minting */ PENDING_MINT = 1, /** UCD minted, loan is active */ ACTIVE = 2, /** Loan passed expiry, in grace period */ EXPIRED = 3, /** Under-collateralized, eligible for liquidation */ LIQUIDATABLE = 4, /** Position has been liquidated */ LIQUIDATED = 5, /** UCD debt repaid, awaiting BTC withdrawal */ REPAID = 6, /** Position permanently closed */ CLOSED = 7 } /** * Convert loan status enum to human-readable string * * @param status Loan status enum value * @returns Human-readable status string */ export declare function loanStatusToString(status: LoanStatus | number): string; /** * Check if status is valid for minting operations * * Minting is allowed in: * - PENDING_DEPOSIT: Initial mint before BTC arrives * - PENDING_MINT: Normal flow - mint after BTC deposited * - ACTIVE: Additional minting (topping up debt) * * @param status Loan status to check * @returns True if minting is allowed in this status */ export declare function isValidMintingStatus(status: LoanStatus | number): boolean; /** * Get list of statuses that allow minting * * @returns Array of valid minting statuses */ export declare function getValidMintingStatuses(): LoanStatus[]; //# sourceMappingURL=loan-status.d.ts.map