import type { Dispatch, SetStateAction, SyntheticEvent } from 'react'; interface Props { readonly defaultOpen?: boolean | undefined; readonly defaultReason?: string | undefined; readonly onClose?: ((event: SyntheticEvent, reason: string) => void) | undefined; } export interface State { readonly handleClose: (event: SyntheticEvent, reason: string) => void; readonly open: boolean; readonly reason: string | undefined; readonly setOpen: Dispatch>; readonly setReason: Dispatch>; } export default function usePopover({ defaultOpen, defaultReason, onClose, }?: Partial): State; export {};