import * as React from "react"; /** * Trạng thái dựng của nhánh non-modal. `enabled=false` (nhánh modal) thì không làm gì: `contentRef` * không được gắn, và `ModalOverlay` tự lo hoạt ảnh thoát. */ export declare function useNonModalPortal(isOpen: boolean, enabled: boolean): { contentRef: React.RefObject; isMounted: boolean; }; /** `onKeyDown` cho thẻ dialog non-modal: Esc (tiêu điểm ở trong) đóng. */ export declare function closeOnEscape(close: () => void): (event: React.KeyboardEvent) => void; /** Portal + `FocusScope autoFocus restoreFocus` (không `contain`) quanh bề mặt non-modal. */ export declare function NonModalPortal({ container, children, }: { container: Element | undefined; children: React.ReactNode; }): React.ReactPortal | null;