@userfrosting/sprinkle-account
Version:
Account Sprinkle for UserFrosting
24 lines (23 loc) • 934 B
TypeScript
import { Severity, AlertInterface } from '@userfrosting/sprinkle-core/interfaces';
import { ForgotPasswordSetPasswordRequest } from '../interfaces';
/**
* API Composable
*/
export declare function useForgotPasswordApi(): {
requestCode: (email: string) => Promise<void>;
setPassword: (data: ForgotPasswordSetPasswordRequest) => Promise<void>;
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>;
};