/// import { Nullable, TUserData } from "../../types"; declare type AuthProviderProps = { children: JSX.Element; }; export declare enum UserType { Individual = "individual", JuridicalPerson = "entity" } declare type ContextType = { isAuthorized: boolean; isJuridicalUser: boolean; changeUserType: (value: UserType) => void; personalInfo: Nullable; }; /** * Context that enables any component to get the current auth state * user type and rerender if it changes * @param props * @param props.children */ export declare const UserProvider: ({ children }: AuthProviderProps) => JSX.Element; export declare const useUser: () => ContextType; export {};