export {};

declare global {
  interface WukongApiEnvelope<TData = unknown> {
    code?: number;
    success?: boolean;
    msg?: string;
    message?: string;
    detail?: string;
    data?: TData;
  }

  interface WukongAuthLoginData {
    token: string;
    user: AuthUser;
  }

  interface WukongCurrentUserInfo extends AuthUser {
    balance?: number | string;
  }

  interface WukongPaymentOrderData {
    order?: {
      out_trade_no?: string;
      amount?: string;
      status?: string;
      [key: string]: unknown;
    };
    pay_params?: {
      code_url?: string;
      [key: string]: unknown;
    };
    order_no?: string;
    code_url?: string;
    prepay_id?: string;
    amount?: number | string;
    amount_yuan?: number;
    status?: string | number | boolean;
    user_id?: number | string;
    user_name?: string;
    [key: string]: unknown;
  }
}
