UNPKG

@userfrosting/sprinkle-account

Version:
71 lines (70 loc) 2.25 kB
import { UserDataInterface } from '../interfaces'; export declare const useAuthStore: import('pinia').StoreDefinition<"auth", { user: UserDataInterface | null; }, { isAuthenticated: (state: { user: { permissions: import('../interfaces').UserPermissionsMapInterface; is_master: boolean; id: number; user_name: string; first_name: string; last_name: string; full_name: string; email: string; avatar: string; flag_enabled: boolean; flag_verified: boolean; group_id: number | null; locale: string; created_at: string; updated_at: string; deleted_at: string | null; } | null; } & import('pinia').PiniaCustomStateProperties<{ user: UserDataInterface | null; }>) => boolean; checkAccess: (state: { user: { permissions: import('../interfaces').UserPermissionsMapInterface; is_master: boolean; id: number; user_name: string; first_name: string; last_name: string; full_name: string; email: string; avatar: string; flag_enabled: boolean; flag_verified: boolean; group_id: number | null; locale: string; created_at: string; updated_at: string; deleted_at: string | null; } | null; } & import('pinia').PiniaCustomStateProperties<{ user: UserDataInterface | null; }>) => (slug: string) => boolean; }, { setUser(user: UserDataInterface): void; unsetUser(): void; check(): Promise<void | { permissions: import('../interfaces').UserPermissionsMapInterface; is_master: boolean; id: number; user_name: string; first_name: string; last_name: string; full_name: string; email: string; avatar: string; flag_enabled: boolean; flag_verified: boolean; group_id: number | null; locale: string; created_at: string; updated_at: string; deleted_at: string | null; } | null>; }>;