import { JsonRpcProvider } from '@ethersproject/providers';
import { TokenInfo } from '@uniswap/token-lists';
import { Provider as Eip1193Provider } from '@web3-react/types';
import { SupportedChainId } from 'constants/chains';
import type { SupportedLocale } from 'constants/locales';
import { PropsWithChildren } from 'react';
import { ErrorHandler } from './Error/ErrorBoundary';
declare type AllWidgetProps = {
    locale?: SupportedLocale;
    provider?: Eip1193Provider | JsonRpcProvider;
    width?: string | number;
    dialog?: HTMLElement | null;
    className?: string;
    onError?: ErrorHandler;
    jsonRpcEndpoints: Partial<Record<SupportedChainId, string>>;
    destinationChainId?: SupportedChainId;
    tokenList?: TokenInfo[];
    darkMode?: boolean;
};
export declare type WidgetProps = AllWidgetProps;
export declare const SourceChainContext: import("react").Context<import("react").Dispatch<import("react").SetStateAction<number | undefined>> | null>;
export declare const DestChainContext: import("react").Context<import("react").Dispatch<import("react").SetStateAction<number | undefined>> | null>;
export default function Widget({ children, provider, dialog: userDialog, className, onError, jsonRpcEndpoints, width, locale, destinationChainId, darkMode, }: PropsWithChildren<AllWidgetProps>): JSX.Element;
export {};
