@refinedev/core
Version:
Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.
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