import { TUserProfile } from '@stackx/core'; import React from 'react'; import { Fallback } from '../types'; declare type AuthStatusUnion = 'unauthorized' | 'validating' | 'authorized'; export declare const getProfileCache: () => TUserProfile; export declare const useAuth: () => Partial<{ profile: TUserProfile; authStatus: AuthStatusUnion; isProbAuth: boolean; fallback: React.ReactElement | string; signInUrl: string; cookieMaxAge?: number; error: Error; signOut: () => Promise; signOutClient: () => void; setAuth: (data: TUserProfile) => void; onLoginClick?: () => void; }>; export declare type AuthProviderConfig = { fallback?: React.ReactElement | string; signInUrl?: string; cookieMaxAge?: number; onLoginClick?: () => void; fetchProfileService: () => Promise; signOutService: () => Promise; }; export declare const AuthProvider: React.FC; export declare const AuthGuard: React.FC<{ enabled?: boolean; loading?: React.ReactElement; fallback?: Fallback; showLoading?: boolean; }>; export {};