@userfrosting/sprinkle-account
Version:
Account Sprinkle for UserFrosting
23 lines (22 loc) • 1.01 kB
TypeScript
import { Severity, AlertInterface } from '@userfrosting/sprinkle-core/interfaces';
/**
* API Composable
*/
export declare function useEmailVerificationApi(): {
requestVerificationCode: (email: string) => Promise<void | import('@userfrosting/sprinkle-core/interfaces').ApiResponse>;
submitVerificationCode: (email: string, code: string) => Promise<void | import('@userfrosting/sprinkle-core/interfaces').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>;
};