UNPKG

nuxt-users

Version:

A comprehensive user management module for Nuxt 3 and Nuxt 4 applications with authentication, authorization, database support, and CLI tools

62 lines (61 loc) 2.07 kB
import type { UserWithoutPassword } from 'nuxt-users/utils'; interface Props { apiEndpoint?: string; redirectTo?: string; loginLink?: string; } interface RegistrationFormData { email: string; name: string; password: string; confirmPassword: string; } declare var __VLS_1: {}, __VLS_3: {}, __VLS_5: {}, __VLS_7: {}, __VLS_9: {}, __VLS_17: {}, __VLS_19: {}, __VLS_21: {}, __VLS_23: { message: string; }, __VLS_25: { error: string; }; type __VLS_Slots = {} & { header?: (props: typeof __VLS_1) => any; } & { 'name-field'?: (props: typeof __VLS_3) => any; } & { 'email-field'?: (props: typeof __VLS_5) => any; } & { 'password-field'?: (props: typeof __VLS_7) => any; } & { 'password-strength'?: (props: typeof __VLS_9) => any; } & { 'confirm-password-field'?: (props: typeof __VLS_17) => any; } & { 'submit-button'?: (props: typeof __VLS_19) => any; } & { footer?: (props: typeof __VLS_21) => any; } & { 'success-message'?: (props: typeof __VLS_23) => any; } & { 'error-message'?: (props: typeof __VLS_25) => any; }; declare const __VLS_base: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & { success: (data: { user: Omit<UserWithoutPassword, "active">; message: string; }) => any; error: (error: string) => any; submit: (data: RegistrationFormData) => any; }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{ onSuccess?: ((data: { user: Omit<UserWithoutPassword, "active">; message: string; }) => any) | undefined; onError?: ((error: string) => any) | undefined; onSubmit?: ((data: RegistrationFormData) => any) | undefined; }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots<T, S> = T & { new (): { $slots: S; }; };