import { CFRefundedLineItem, CFRefundedCustomSale } from "../../CommonTypes"; export interface CalculateRefundTotalParams { /** Optional order ID to set as the active order context for the calculation. */ orderId?: string; } export interface CalculateRefundTotalResponse { success: boolean; summary: { subtotal: string; tax: string; total: string; }; refundedLineItems: CFRefundedLineItem[]; refundedCustomSales: CFRefundedCustomSale[]; timestamp: string; } export type CalculateRefundTotal = (params?: CalculateRefundTotalParams) => Promise;