/** * Represents the authenticated user identity schema. */ interface AuthUser { /** The unique identifier for the user. */ id: number; /** The display name of the user. */ name: string; /** The primary email address of the user. */ email: string; } /** * A Nuxt composable providing authentication states and actions for the `nuxt-crud-table` workspace. * Handles token storage, user session persistence, SSR-safe states, and request headers. * @example * ```ts * const { user, isAuthenticated, login, logout } = useNctAuth() * ``` * @returns An object containing reactive authentication state and action utilities. */ export declare function useNctAuth(): { token: import("vue").Ref; user: import("vue").Ref; isAuthenticated: import("vue").ComputedRef; authHeaders: import("vue").ComputedRef>; login: (credentials: Record) => Promise<{ success: boolean; error?: undefined; } | { success: boolean; error: string; }>; register: (registrationDetails: Record) => Promise<{ success: boolean; error?: undefined; } | { success: boolean; error: string; }>; logout: () => Promise; fetchUser: () => Promise; }; export {};