Returns the hash (of the function/event signature) for a given event or function definition.
function toEventSelector( fn: string | AbiEvent | AbiFunction,): `0x${string}`;
let fn: string | AbiEvent | AbiFunction;
let returnType: `0x${string}`;