import { MenuHandle } from '../Menu/useMenuControl'; export type DialogHandle = MenuHandle; export interface DialogControl { ref: React.RefObject | null>; triggerRef: React.RefObject; anchorRef: React.RefObject; open: (context?: TContext) => void; close: () => void; toggle: (context?: TContext) => void; isOpen: boolean; subscribeOpenChange: (cb: (open: boolean) => void) => () => void; } declare function useDialogControl(): DialogControl; declare function useDialogState(dialogRef: React.RefObject | null>, reconnectKey?: unknown): boolean; export { useDialogControl, useDialogState };