type Props = Record | never; type EventOptions

= { props: P; revenue?: { currency: string; amount: number; }; u?: string; callback?: VoidFunction; }; type Events = { [K: string]: Props; }; type IsAny = 0 extends 1 & T ? true : false; export default function usePlausible(): (eventName: N, ...rest: IsAny extends true ? [(Omit, "props"> & { props?: Record; })?] : [E[N]] extends [never] ? [Omit, "props">?] : [EventOptions]) => any; export {};