type UseActionParams = { onClick?: (e: T) => void; action?: (e: T) => Promise; }; declare const useAction: (params: UseActionParams) => [boolean, (e: T) => void]; export default useAction;