import type AlertEvent from './events/AlertEvent';
import type ConfirmEvent from './events/ConfirmEvent';
import type MediaLibraryCloseEvent from './events/MediaLibraryCloseEvent';
interface EventMap {
    alert: AlertEvent;
    confirm: ConfirmEvent;
    mediaLibraryClose: MediaLibraryCloseEvent;
}
export declare function useWindowEvent<K extends keyof WindowEventMap>(eventName: K, callback: (event: WindowEventMap[K]) => void): void;
export declare function useWindowEvent<K extends keyof EventMap>(eventName: K, callback: (event: EventMap[K]) => void): void;
export {};
