import type { GetSession, SignIn, SignOut, SignUp } from '../../types.js'; import { useAuthState } from './use-auth-state.js'; import type { SessionData } from '#auth'; /** * 请求用户权限数据 */ declare const getSession: GetSession; type Credentials = { username?: string; email?: string; password?: string; } & Record; /** * 登录 */ declare const signIn: SignIn; /** * 注册 */ declare const signUp: SignUp; /** * 登出 */ declare const signOut: SignOut; type UseAuthReturn = { getSession: typeof getSession; signIn: typeof signIn; signUp: typeof signUp; signOut: typeof signOut; } & ReturnType; export declare const useAuth: () => UseAuthReturn; export {};