import React from 'react'; import './index.scss'; interface WebViewProp { src: string; callbacks: any; onLoad?: (e: Event) => void; onError?: (e: Event) => void; } declare class WebView extends React.Component { iframeRef: any; onLoad: (e: Event) => void; onError: (e: Event) => void; componentDidMount(): void; componentWillUnmount(): void; postMessage: (value: any) => void; taskCallback(taskKey: string, callbacks: any): void; emitEvent: (eventName: any, eventData?: {}) => void; onMessage: (event: MessageEvent) => void; render(): JSX.Element; } export default WebView;