export type EmailAlert = { type: 'success' | 'danger'; message: string; }; export declare function useEmailCode({ baseUrl, username, initialRetryAfter, }: { baseUrl?: string; username: string; initialRetryAfter?: string; }): { retryCount: number; alert: EmailAlert; send: () => Promise; reset: () => void; };