import { Dispatch } from 'react'; /** * The state used for the component. */ interface State { email?: string; password?: string; } /** * The target component names. */ export declare const enum TargetName { Email = "email", Password = "password" } /** * Type of actions which can be applied to the state. */ declare const enum ActionType { UpdateState = 0, ResetState = 1 } /** * Update state action. */ interface UpdateStateAction { type: ActionType.UpdateState; target: string; payload: string | undefined; } /** * Build an action used to update the state. * * @param target - The target component for which to update state. * @param value - The value to set. * @returns The corresponding action. */ export declare function updateState(target: string, value: string | undefined): UpdateStateAction; /** * Reset state action. */ interface ResetStateAction { type: ActionType.ResetState; } /** * Build an action used to reset the state. * * @returns The corresponding action. */ export declare function resetState(): ResetStateAction; /** * The reducer action. */ declare type Action = UpdateStateAction | ResetStateAction; /** * Use the component reducer. * * @returns The same values as for `React.useReducer`. */ export default function useSignInReducer(): [State, Dispatch]; export {};