export interface DialogState { isOpen: boolean; close: (result?: T) => void; } export default function useDialog(): DialogState;