@refinedev/core
Version:
refine is a React-based framework for building internal tools, rapidly. It ships with Ant Design System, an enterprise-level UI toolkit.
18 lines • 1.22 kB
text/typescript
import React, { type PropsWithChildren } from "react";
import type { IAuthContext, ILegacyAuthContext } from "./types";
/**
* @deprecated `LegacyAuthContext` is deprecated with refine@4, use `AuthBindingsContext` instead, however, we still support `LegacyAuthContext` for backward compatibility.
*/
export declare const LegacyAuthContext: React.Context<ILegacyAuthContext>;
/**
* @deprecated `LegacyAuthContextProvider` is deprecated with refine@4, use `AuthBindingsContextProvider` instead, however, we still support `LegacyAuthContextProvider` for backward compatibility.
*/
export declare const LegacyAuthContextProvider: React.FC<PropsWithChildren<ILegacyAuthContext>>;
export declare const AuthBindingsContext: React.Context<Partial<IAuthContext>>;
export declare const AuthBindingsContextProvider: React.FC<PropsWithChildren<IAuthContext>>;
/**
* @deprecated `useLegacyAuthContext` is deprecated with refine@4, use `useAuthBindingsContext` instead, however, we still support `useLegacyAuthContext` for backward compatibility.
*/
export declare const useLegacyAuthContext: () => ILegacyAuthContext;
export declare const useAuthBindingsContext: () => Partial<IAuthContext>;
//# sourceMappingURL=index.d.ts.map