import { type CallbackSetter } from './shared/types';
/**
 * Accepts an event name then returns a callback setter for a function to be performed when the event triggers.
 */
declare const useGlobalEvent: <TEvent extends Event>(eventName: keyof WindowEventMap, opts?: AddEventListenerOptions) => CallbackSetter<TEvent>;
export default useGlobalEvent;
