export type TypeListenerKeyFunctions = keyof DocumentEventMap; export type TypeListenerFunctions = (ev: DocumentEventMap[K]) => any; export type useDocumentEventProps = { [id in TypeListenerKeyFunctions]?: TypeListenerFunctions; }; export declare const useDocumentEvent: ({ ...props }: useDocumentEventProps) => { onReload: () => void; };