import { EventEmitter } from '../../stencil-public-runtime';
import { ComponentErrorEvent, ComponentSubmitEvent, IRefund, IRefundPayload, IPayment, Payment } from '../../api';
import { FormController } from '../../ui-components/form/form';
import JustifiAnalytics from '../../api/Analytics';
export declare class JustifiRefundPayment {
    formController: FormController;
    refundPayload: IRefundPayload;
    displayAmount: string;
    errors: any;
    paymentLoading: boolean;
    refundLoading: boolean;
    submitDisabled: boolean;
    payment: Payment;
    authToken: string;
    accountId: string;
    paymentId: string;
    hideSubmitButton?: boolean;
    errorEvent: EventEmitter<ComponentErrorEvent>;
    submitEvent: EventEmitter<ComponentSubmitEvent>;
    analytics: JustifiAnalytics;
    componentWillLoad(): void;
    private handleError;
    private checkAmount;
    private handleInvalidAmount;
    private isPaymentCreatedWithin25Minutes;
    private initializeFormController;
    inputHandler: (name: string, value: string) => void;
    private initializeApi;
    refundPayment(event?: CustomEvent): Promise<IRefund | IPayment>;
    private tryVoidPayment;
    private processRefund;
    render(): any;
}
