import React from 'react'; export interface AuthUser { email: string; name?: string; avatar?: string; } interface AuthContextValue { /** Currently authenticated user, or null when logged out */ user: AuthUser | null; /** True while the initial session hydration from localStorage is pending */ isLoading: boolean; /** Attempt login — returns true on success, false on invalid credentials */ login: (email: string, password: string) => boolean; /** Clear session and redirect to /login */ logout: () => void; } /** * `AuthProvider` — manages authentication state for the devops app. * * Must be rendered **inside** `` so that `useNavigate` is available. * Wrap your `` tree with this provider to give all pages access to * `user`, `login`, and `logout` via `useAuth()` without prop-drilling. * * @example * ```tsx * * * * * * ``` */ export declare function AuthProvider({ children }: { children: React.ReactNode; }): import("react/jsx-runtime").JSX.Element; /** * `useAuth` — consume authentication state anywhere inside ``. * * @throws if called outside `` * * @example * ```tsx * const { user, logout } = useAuth(); * ``` */ export declare function useAuth(): AuthContextValue; export {};