import { Dispatch, MutableRefObject, SetStateAction } from 'react';
export declare const useDocumentEvent: (events: any[]) => void;
declare type DropdownT<T> = [MutableRefObject<T>, boolean, Dispatch<SetStateAction<boolean>>];
/**
 * Functions which performs a click outside event listener
 * @param {*} initialState initialState of the dropdown
 * @param {*} onAfterClose some extra function call to do after closing dropdown
 */
export declare function useDropdown<T extends HTMLElement>(initialState?: boolean, onAfterClose?: any): DropdownT<T>;
export {};
