export default function useHandler(callback: ((...args: A) => void) | undefined, update: (...args: A) => void): (...args: A) => void;