import React from 'react'; import type { PropsWithChildren } from 'react'; export declare enum Status { INITIALIZING = 0, READY_WITH_TOKEN = 1, READY_WITHOUT_TOKEN = 2 } export type AuthContextData = { readonly token: string | null; readonly hasToken: boolean; readonly clearToken: () => void; readonly setToken: (token: string) => void; readonly status: Status; }; export declare const AuthContext: React.Context; export declare const getToken: (authTokenKey?: string) => Promise; export declare function getDecodedToken(): Promise; declare const AuthProvider: React.FC>; export declare const useToken: () => string | null; export declare const useStatus: () => Status; export declare const useSetToken: () => (token: string) => void; export declare const useClearToken: () => () => void; export default AuthProvider;