import { FunctionComponent, ReactNode } from 'react' declare module 'react-twitter-widgets' { export type onLoad = () => any; export type renderError = (error: Error) => ReactNode; export interface FollowProps { username: string; options?: Object; onLoad?: onLoad; renderError?: renderError; } export const Follow: FunctionComponent; export interface HashtagProps { hashtag: string; options?: Object; onLoad?: onLoad; renderError?: renderError; } export const Hashtag: FunctionComponent; export interface MentionProps { username: string; options?: Object; onLoad?: onLoad; renderError?: renderError; } export const Mention: FunctionComponent; export interface ShareProps { url: string; options?: Object; onLoad?: onLoad; renderError?: renderError; } export const Share: FunctionComponent; export interface TimelineProps { dataSource: object; options?: Object; onLoad?: onLoad; renderError?: renderError; } export const Timeline: FunctionComponent; export interface TweetProps { tweetId: string; options?: Object; onLoad?: onLoad; renderError?: renderError; } export const Tweet: FunctionComponent; }