import React, { ReactNode } from 'react'; import { UserType } from './types/types'; import { InitDataUnsafe } from '@vkruglikov/react-telegram-web-app/lib/useInitData'; declare type EnvType = 'dev' | 'test' | 'main'; declare type TomoContextType = { env: EnvType; tmaid: string; tmakey: string; endpoints: [string]; onLogin: () => Promise; userInfo: UserType | null; onLogout: () => void; telegramData: InitDataUnsafe; tMAuthLink: string; }; export declare const defaultEndpoints: { [key in EnvType]: [string]; }; export declare const defaultTMAuthLink = "https://t.me/tomowalletbot/tomoauthapp"; export declare const TomoProvider: React.FC<{ children: ReactNode; tmaid: string; tmakey: string; env?: EnvType; customEndpoints?: [string]; customTMAuthLink?: string; }>; export declare const useTomo: () => TomoContextType; export {};