import React, { ReactText } from 'react'; export interface PayPalLogoProps { className?: string; id: string; amount: ReactText; placement?: 'home' | 'category' | 'product' | 'cart' | 'payment'; style?: { layout?: string; logoType?: string; logoPosition?: string; textColor?: string; textSize?: string; flexColor?: string; flexRatio?: string; }; timeout?: number; onRender?: () => void; onClick?: () => void; onApply?: () => void; } export default class PayPalLogo extends React.Component { readonly prefixCls = "abc-pp-logo"; renderTimer: any; clearOverflowTimer: any; maxRetryCount: number; hasObservedModalEl: boolean; defaultStyle: { layout: string; logoType: string; logoPosition: string; textColor: string; textSize: number; }; static defaultProps: { placement: string; timeout: number; }; componentDidMount(): void; componentWillUnmount(): void; renderLogo: () => void; /** * 清除body上的overflow和padding */ clearBodyOverflow: () => void; /** * body添加overflow:hidden,并隐藏滚动条 */ hideScrollBar: () => void; /** * 监听弹窗可见性 * 修正因paypal bug导致body上的错误overflow */ observeModal: () => void; onClick: () => void; /** * render logo */ refreshPayPal: () => void; render(): JSX.Element; }