/**
 * This hook allows for easier declaration of events and unsubscribers
 */
export default function useEvents<EN extends string, E extends {
    [k in EN]: any[];
}>(): {
    subscriber: <X extends EN>(e: X, cb: (...args: E[X]) => void) => () => void;
    dispatcher: <X_1 extends EN>(eventName: X_1, ...args: E[X_1]) => void;
};
