UNPKG

polyfact

Version:

<h1 align="center">PolyFact</h1>

15 lines (14 loc) 462 B
import { ReactNode, JSX } from "react"; import { Client } from "../client"; type AuthStatus = "loading" | "authenticated" | "unauthenticated"; export declare function PolyfactProvider({ children, project, endpoint, }: { children: ReactNode; project: string; endpoint?: string; }): JSX.Element; export default function usePolyfact(): Omit<Client, "auth"> & { auth: Omit<Client["auth"], "init"> & { status: AuthStatus; }; }; export {};