import { Provider } from "providers/interfaces"; import * as React from 'react'; import { Session } from "./interfaces"; interface SessionContext { session: Session | null; signIn: (provider: Provider, options?: { username: string; password: string; } | { to: string; }) => void; signOut: () => void; verify: (code: string) => Promise; status: Status; update: (session: any) => void; } type Status = 'authenticated' | 'unauthenticated' | 'loading' | 'verify'; declare const SessionContext: React.Context; export declare const SessionProvider: ({ children }: { children: JSX.Element | JSX.Element[]; }) => React.JSX.Element; export declare const useAuth: () => SessionContext; export {};