import type { ComputedRef } from 'vue'; import type { CommonUseAuthStateReturn } from '../../types.js'; import type { CookieRef } from '#app'; import type { SessionData } from '#auth'; /** * The internal response of the local-specific auth data * * @remarks * The returned value `refreshToken` and `rawRefreshToken` will always be `null` if `refresh.isEnabled` is `false` */ export interface UseAuthStateReturn extends CommonUseAuthStateReturn { token: ComputedRef; rawToken: CookieRef; refreshToken: ComputedRef; rawRefreshToken: CookieRef; setToken: (newToken: string | null) => void; clearToken: () => void; _internal: { rawTokenCookie: CookieRef; }; } export declare function useAuthState(): UseAuthStateReturn; export default useAuthState;