import * as react_jsx_runtime from 'react/jsx-runtime'; import { ReactNode } from 'react'; import { a as ButtonProps } from '../Button-Bn8pGg6N.js'; import '../theme-VMRlhqST.js'; type LoginButtonProps = Omit, "as" | "onClick" | "children"> & { children: ReactNode; }; /** Button that kicks off the auth redirect. `null` when already logged in. */ declare function LoginButton({ children, ...buttonProps }: LoginButtonProps): react_jsx_runtime.JSX.Element | null; type LogoutButtonProps = Omit, "as" | "onClick" | "children"> & { children: ReactNode; }; /** Button that clears the session. `null` when logged out. */ declare function LogoutButton({ children, ...buttonProps }: LogoutButtonProps): react_jsx_runtime.JSX.Element | null; type UserAvatarProps = { size?: "sm" | "md" | "lg"; className?: string; }; /** Avatar from `profile.image`, or initials from `profile.name`. `null` otherwise. */ declare function UserAvatar({ size, className }: UserAvatarProps): react_jsx_runtime.JSX.Element | null; type UserEmailProps = { className?: string; }; /** Renders `profile.email`. `null` when logged out or the key lacks `profile` scope. */ declare function UserEmail({ className }: UserEmailProps): react_jsx_runtime.JSX.Element | null; type UserNameProps = { className?: string; }; /** * Renders the user's display name. Falls back to GitHub username when the * `profile` scope was not granted (or `name` is empty). `null` when logged * out, or when neither name nor GitHub username is available. */ declare function UserName({ className }: UserNameProps): react_jsx_runtime.JSX.Element | null; type WhenLoggedInProps = { children: ReactNode; }; /** Renders `children` only when a user is signed in. */ declare function WhenLoggedIn({ children }: WhenLoggedInProps): react_jsx_runtime.JSX.Element | null; type WhenLoggedOutProps = { children: ReactNode; }; /** Renders `children` only when no user is signed in. */ declare function WhenLoggedOut({ children }: WhenLoggedOutProps): react_jsx_runtime.JSX.Element | null; export { LoginButton, type LoginButtonProps, LogoutButton, type LogoutButtonProps, UserAvatar, type UserAvatarProps, UserEmail, type UserEmailProps, UserName, type UserNameProps, WhenLoggedIn, type WhenLoggedInProps, WhenLoggedOut, type WhenLoggedOutProps };