import React from "react"; import type Realm from "realm"; /** * Create a context containing the Realm app. Should be accessed with the useApp hook. */ export declare const UserContext: React.Context | null>; type UserProviderProps = { /** * The fallback component to render if there is no authorized user. This can be used * to render a login screen or another component which will log the user in. */ fallback?: React.ComponentType | React.ReactElement | null | undefined; children: React.ReactNode; }; /** * React component providing a Realm user on the context for the sync hooks * to use. A `UserProvider` is required for an app to use the hooks. */ export declare const UserProvider: React.FC; /** * Hook to access the currently authenticated Realm user from the * {@link UserProvider} context. The user is stored as React state, * so will trigger a re-render whenever it changes (e.g. logging in, * logging out, switching user). * */ export declare const useUser: , UserProfileDataType extends Realm.DefaultUserProfileData>() => Realm.User; export {}; //# sourceMappingURL=UserProvider.d.ts.map