import { OnInit } from '@angular/core'; import { FormControl } from '@angular/forms'; import { AdministratorRefundInput, CustomFieldConfig, Dialog, ModifyOrderInput, OrderDetailFragment } from '@vendure/admin-ui/core'; import { RefundablePayment } from '../../common/get-refundable-payments'; import { AddedLine, OrderSnapshot } from '../../common/modify-order-types'; import { OrderEditorComponent } from '../order-editor/order-editor.component'; import * as i0 from "@angular/core"; export declare enum OrderEditResultType { Refund = 0, Payment = 1, PriceUnchanged = 2, Cancel = 3 } interface OrderEditsRefundResult { result: OrderEditResultType.Refund; refunds: AdministratorRefundInput[]; } interface OrderEditsPaymentResult { result: OrderEditResultType.Payment; } interface OrderEditsPriceUnchangedResult { result: OrderEditResultType.PriceUnchanged; } interface OrderEditsCancelResult { result: OrderEditResultType.Cancel; } type OrderEditResult = OrderEditsRefundResult | OrderEditsPaymentResult | OrderEditsPriceUnchangedResult | OrderEditsCancelResult; export declare class OrderEditsPreviewDialogComponent implements OnInit, Dialog { orderLineCustomFields: CustomFieldConfig[]; order: OrderDetailFragment; orderSnapshot: OrderSnapshot; modifyOrderInput: ModifyOrderInput; addedLines: AddedLine[]; shippingAddressForm: OrderEditorComponent['shippingAddressForm']; billingAddressForm: OrderEditorComponent['billingAddressForm']; updatedShippingMethods: OrderEditorComponent['updatedShippingMethods']; couponCodesControl: FormControl; refundablePayments: RefundablePayment[]; refundNote: string; resolveWith: (result?: OrderEditResult) => void; get priceDifference(): number; get amountToRefundTotal(): number; ngOnInit(): void; onPaymentSelected(payment: RefundablePayment, selected: boolean): void; refundsCoverDifference(): boolean; cancel(): void; submit(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } export {};