/** * AuthProvider: A React context provider for managing authentication and authorization states. * * This component handles authentication flows, API key validation, and token management. */ import React, { ReactNode } from 'react'; import { ApiKeyScope } from '../hooks/useClient.js'; export type AuthContextType = { authToken: string; loading: boolean; error?: string | null; scope: ApiKeyScope; }; type AuthProviderProps = { readonly children: ReactNode; vauthz_key?: string | null; scope?: 'organization' | 'project' | 'environment'; skipLogin?: boolean; }; export declare function AuthProvider({ children, vauthz_key: key, scope, skipLogin, }: AuthProviderProps): React.JSX.Element; export declare const useAuth: () => AuthContextType; export {};