import * as React from "react"; import { IModalProps } from "../../components/Modal"; interface IPurchasePhotoProps { purchaseWithToken: (token: string, email: string) => Promise; purchaseWithSavedPayment: () => Promise; image: string; modal?: IModalProps; hasPayment: boolean; onClose?: () => void; onPurchased?: (error?: Error) => void; purchaseText: string; } interface IPurchasePhotoState { navigate: "payment" | "loading" | "failed" | "success"; } export declare class PurchasePhoto extends React.PureComponent { state: IPurchasePhotoState; constructor(props: any); componentDidMount(): void; componentDidUpdate(prevProps: IPurchasePhotoProps): void; render(): JSX.Element; private renderPayment; private renderLoader; private renderSuccess; private renderFailed; private purchase; } export {};