/**
 * @description 跨境金融中枢契约 (V18.0)
 * 定义汇率同步、货币换算及对冲策略的数据结构
 */

export interface IFinanceSync {
  /**
   * @description 实时汇率同步接口
   */
  syncRates(): Promise<{
    success: boolean;
    timestamp: number;
    base: string;
    rates: Record<string, number>;
  }>;

  /**
   * @description 跨币种安全换算
   * @param amount 原始金额
   * @param from 原始币种
   * @param to 目标币种
   */
  convert(amount: number, from: string, to: string): number;

  /**
   * @description 获取对冲安全边际
   */
  getSafetyMargin(): number;
}
