import { PropsWithChildren } from 'react'; import { ThemeConfig } from '../themes/DefaultThemes'; import { Locale } from '../locales'; import { AuthClientInterface, SignInOptions } from '@futureverse/auth-core'; import { WagmiProviderProps } from './wagmi'; type LegalLinks = { privacyPolicyUrl: string; termsOfServiceUrl: string; }; interface AuthUiProviderProps { themeConfig: ThemeConfig; authClient: AuthClientInterface; locale?: Locale; orderedConnectorIds?: string[]; legalLinks?: LegalLinks; } export type SignInMethod = (opts: SignInOptions) => Promise; export declare enum State { IDLE = "idle", CONNECTING = "connecting", CONNECTED = "connected", DISCONNECTING = "disconnecting", SIGN_IN_PASS = "signInPass", CONNECT_ERROR = "connectError", USER_REJECTED = "userRejected" } export type AuthUiContextProps = { isLoginOpen: boolean; openLogin: () => void; closeLogin: () => void; currentState: State; legalLinks?: LegalLinks; }; declare const AuthUiProvider: ({ children, authClient, themeConfig, locale, orderedConnectorIds, legalLinks, wagmiConfig, initialState, reconnectOnMount, }: PropsWithChildren) => import("react/jsx-runtime").JSX.Element; declare const useAuthUi: () => AuthUiContextProps; export { AuthUiProvider, useAuthUi };