import type { AuthSession } from "../server/auth.js"; export type { AuthSession }; interface UseSessionResult { session: AuthSession | null; isLoading: boolean; } /** * Client-side hook to get the current auth session. * * Fetches the current session from `/_agent-native/auth/session` and returns * it, or `null` when unauthenticated. This behavior is the same in all * environments — there is no dev bypass and no `local@localhost` sentinel. * * Templates should use this instead of building their own auth context. */ export declare function useSession(): UseSessionResult; //# sourceMappingURL=use-session.d.ts.map