import { h } from 'preact';
import UIElement from '../UIElement';
import { DonationElementProps } from './types';
/**
 * DonationElement
 */
declare class DonationElement extends UIElement<DonationElementProps> {
    static type: string;
    constructor(props: any);
    static defaultProps: {
        onCancel: () => void;
        onDonate: () => void;
    };
    protected formatProps(props: DonationElementProps): DonationElementProps;
    isNewDonation(prop: DonationElementProps): boolean;
    /**
     * Returns the component payment data ready to submit to the Checkout API
     */
    get data(): any;
    /**
     * Returns whether the component state is valid or not
     */
    get isValid(): any;
    setState(newState: any): void;
    donate(): void;
    handleRef: (ref: any) => void;
    render(): h.JSX.Element;
}
export default DonationElement;
