import type { BalanceData, AprData, LoopPostTradeMetrics } from './types';
export declare const positivePart: (n: number) => number;
export declare function nanTo(possiblyNaN: number, replacement?: number): number;
export declare function getHealthFactor(collateral: number, adjustedDebt: number): number;
/** Collect all unique keys from two maps */
export declare function keysFromMaps<T>(a: Record<string, T> | undefined, b: Record<string, T> | undefined): string[];
/** Convert a RewardsList array to a map keyed by asset address for fast lookup */
export declare function rewardsToMap<T extends {
    asset: string;
}>(rewards: T[] | undefined): Record<string, T>;
/** No-op result when dollar amounts are zero */
export declare function noOpResult(balance: BalanceData, apr: AprData): LoopPostTradeMetrics;
/** Build the final post-trade metrics from updated balance and apr */
export declare function buildLoopResult(balance: BalanceData, newBalance: BalanceData, apr: AprData, newApr: AprData, useAllActive?: boolean): LoopPostTradeMetrics;
//# sourceMappingURL=utils.d.ts.map