UNPKG

@userfrosting/sprinkle-account

Version:
34 lines (33 loc) 1.32 kB
import { Severity, ApiResponse, AlertInterface } from '@userfrosting/sprinkle-core/interfaces'; import { EmailEditRequest } from '../interfaces'; /** * API Composable */ export declare function useUserEmailEditApi(): { submitEmailEdit: (data: EmailEditRequest) => Promise<void | ApiResponse>; apiLoading: import('vue').Ref<boolean, boolean>; apiError: import('vue').Ref<{ title?: string | undefined; description?: string | undefined; style?: (Severity | keyof typeof Severity) | undefined; closeBtn?: boolean | undefined; hideIcon?: boolean | undefined; } | null, AlertInterface | { title?: string | undefined; description?: string | undefined; style?: (Severity | keyof typeof Severity) | undefined; closeBtn?: boolean | undefined; hideIcon?: boolean | undefined; } | null>; formData: import('vue').Ref<{ email: string; passwordcheck: string; }, EmailEditRequest | { email: string; passwordcheck: string; }>; r$: import('vue').Raw<import('@regle/core').RegleRoot<{ email: string; passwordcheck: string; }, Record<string, any>, Record<string, import('@regle/core').RegleValidationGroupEntry[]>, import('@regle/core').RegleShortcutDefinition<any>>>; };