import React from 'react'; interface RefundButtonProps { order: { canRefund: boolean; refundApi: string; grandTotal: { value: number; currency: string; }; }; } /** * The one refund button, owned by core (OMS), not by any payment module. It is * shown automatically for every payment method whose `Order.canRefund` is true * (capability + refundable status), and posts to the single core refund route. * No per-gateway button, no per-gateway route. */ export default function RefundButton({ order: { canRefund, refundApi, grandTotal } }: RefundButtonProps): React.JSX.Element; export declare const layout: { areaId: string; sortOrder: number; }; export declare const query = "\n query Query {\n order(uuid: getContextValue(\"orderId\")) {\n canRefund\n refundApi\n grandTotal {\n value\n currency\n }\n }\n }\n"; export {};