import * as React from 'react'; import { ReactStore } from '@base-ui-components/utils/store'; import { type InteractionType } from '@base-ui-components/utils/useEnhancedClickHandler'; import { type DialogRoot } from "../root/DialogRoot.js"; import { PopupStoreContext, PopupStoreState } from "../../utils/popups/index.js"; export type State = PopupStoreState & { modal: boolean | 'trap-focus'; disablePointerDismissal: boolean; openMethod: InteractionType | null; nested: boolean; nestedOpenDialogCount: number; titleElementId: string | undefined; descriptionElementId: string | undefined; viewportElement: HTMLElement | null; role: 'dialog' | 'alertdialog'; }; type Context = PopupStoreContext & { readonly popupRef: React.RefObject; readonly backdropRef: React.RefObject; readonly internalBackdropRef: React.RefObject; readonly onNestedDialogOpen?: (ownChildrenCount: number) => void; readonly onNestedDialogClose?: () => void; }; declare const selectors: { modal: (state: State) => boolean | "trap-focus"; nested: (state: State) => boolean; nestedOpenDialogCount: (state: State) => number; disablePointerDismissal: (state: State) => boolean; openMethod: (state: State) => InteractionType | null; descriptionElementId: (state: State) => string | undefined; titleElementId: (state: State) => string | undefined; viewportElement: (state: State) => HTMLElement | null; role: (state: State) => "dialog" | "alertdialog"; open: (state: PopupStoreState) => boolean; mounted: (state: PopupStoreState) => boolean; transitionStatus: (state: PopupStoreState) => import("../../utils/useTransitionStatus.js").TransitionStatus; floatingRootContext: (state: PopupStoreState) => import("../../floating-ui-react/components/FloatingRootStore.js").FloatingRootStore; preventUnmountingOnClose: (state: PopupStoreState) => boolean; payload: (state: PopupStoreState) => unknown; activeTriggerId: (state: PopupStoreState) => string | null; activeTriggerElement: (state: PopupStoreState) => Element | null; isTriggerActive: (state: PopupStoreState, triggerId: string | undefined) => boolean; isOpenedByTrigger: (state: PopupStoreState, triggerId: string | undefined) => boolean; isMountedByTrigger: (state: PopupStoreState, triggerId: string | undefined) => boolean; triggerProps: (state: PopupStoreState, isActive: boolean) => import("../../utils/types.js").HTMLProps; popupProps: (state: PopupStoreState) => import("../../utils/types.js").HTMLProps; popupElement: (state: PopupStoreState) => HTMLElement | null; positionerElement: (state: PopupStoreState) => HTMLElement | null; }; export declare class DialogStore extends ReactStore>, Context, typeof selectors> { constructor(initialState?: Partial>); setOpen: (nextOpen: boolean, eventDetails: Omit) => void; } export {};