import type { FC } from 'react'; import type { AuthProviderComponentProps } from '../types'; interface Props extends AuthProviderComponentProps { isValidAccessCode: (code: string) => boolean; isValidEmail: (email: string) => boolean; isValidPassword: (pwd: string) => { passwordIsValid: boolean; }; sendAccessKey: (opts: { email: string; }) => Promise; setPassword: (opts: { login: string; newPassword: string; accesskey: string; }) => Promise; validatePassword: (opts: { login: string; password: string; }) => void; startLogin: (opts: { user: string; }) => Promise; onLoginSuccessful: (returnUrl: string | undefined) => Promise; } declare const EmailAndPassword: FC; export default EmailAndPassword;