import { Store } from '@base-ui/utils/store'; import { DisposableStack, disposeSymbol } from '@mui/x-internals/disposable'; import type { MinimalTreeViewParameters, TreeViewParametersToStateMapper, MinimalTreeViewState } from "./MinimalTreeViewStore.types.mjs"; import type { TreeViewValidItem } from "../../models/index.mjs"; import { TimeoutManager } from "./TimeoutManager.mjs"; import { TreeViewKeyboardNavigationPlugin } from "../plugins/keyboardNavigation/index.mjs"; import { TreeViewFocusPlugin } from "../plugins/focus/TreeViewFocusPlugin.mjs"; import { TreeViewItemsPlugin } from "../plugins/items/TreeViewItemsPlugin.mjs"; import { TreeViewSelectionPlugin } from "../plugins/selection/TreeViewSelectionPlugin.mjs"; import { TreeViewExpansionPlugin } from "../plugins/expansion/index.mjs"; import { TreeViewItemPluginManager } from "./TreeViewItemPluginManager.mjs"; import type { TreeViewEventEvent, TreeViewEventListener, TreeViewEventParameters, TreeViewEvents } from "../models/index.mjs"; export declare class MinimalTreeViewStore, Multiple extends boolean | undefined, State extends MinimalTreeViewState = MinimalTreeViewState, Parameters extends MinimalTreeViewParameters = MinimalTreeViewParameters> extends Store { private initialParameters; private mapper; readonly disposables: DisposableStack; private eventManager; instanceName: string; parameters: Parameters; timeoutManager: TimeoutManager; itemPluginManager: TreeViewItemPluginManager; items: TreeViewItemsPlugin; focus: TreeViewFocusPlugin; expansion: TreeViewExpansionPlugin; selection: TreeViewSelectionPlugin; keyboardNavigation: TreeViewKeyboardNavigationPlugin; constructor(parameters: Parameters, instanceName: string, mapper: TreeViewParametersToStateMapper); /** * Builds an object containing the method that should be exposed publicly by the Tree View components. */ buildPublicAPI(): { getItem: (itemId: import("../../index.mjs").TreeViewItemId) => R; getItemDOMElement: (itemId: import("../../index.mjs").TreeViewItemId) => HTMLElement | null; getItemOrderedChildrenIds: (itemId: import("../../index.mjs").TreeViewItemId | null) => import("../../index.mjs").TreeViewItemId[]; getItemTree: () => R[]; getParentId: (itemId: import("../../index.mjs").TreeViewItemId) => import("../../index.mjs").TreeViewItemId | null; setIsItemDisabled: ({ itemId, shouldBeDisabled }: { itemId: import("../../index.mjs").TreeViewItemId; shouldBeDisabled?: boolean; }) => void; isItemExpanded: (itemId: import("../../index.mjs").TreeViewItemId) => boolean; setItemExpansion: ({ itemId, event, shouldBeExpanded }: { itemId: import("../../index.mjs").TreeViewItemId; event?: React.SyntheticEvent | null; shouldBeExpanded?: boolean; }) => void; focusItem: (event: React.SyntheticEvent | null, itemId: import("../../index.mjs").TreeViewItemId) => void; getItemSelection: (itemId: import("../../index.mjs").TreeViewItemId) => import("../../index.mjs").TreeViewItemSelectionStatus; setItemSelection: ({ itemId, event, keepExistingSelection, shouldBeSelected }: { itemId: string; event?: React.SyntheticEvent | null; shouldBeSelected?: boolean; keepExistingSelection?: boolean; }) => void; }; /** * Updates the state of the Tree View based on the new parameters provided to the root component. */ updateStateFromParameters(parameters: Parameters): void; /** * Runs mount-time side effects that must not happen during render (the store * is created during render by `useDisposable`). No-op by default; overridden * by stores that kick off work on mount (e.g. lazy-loading fetches). Safe to * call more than once (StrictMode replays mount effects). */ mountEffect: () => void; /** * Disposes the store synchronously when the component unmounts. `useDisposable` * handles React StrictMode's simulated unmount, so this runs once on real unmount. */ [disposeSymbol](): void; /** * Whether updates based on `props.items` change should be ignored. */ shouldIgnoreItemsStateUpdate: () => boolean; /** * Registers an effect to be run when the value returned by the selector changes. */ registerStoreEffect: (selector: (state: State) => Value, effect: (previous: Value, next: Value) => void) => void; /** * Publishes an event to all its subscribers. */ publishEvent: (name: E, params: TreeViewEventParameters, event: TreeViewEventEvent) => void; /** * Subscribe to an event emitted by the store. * For now, the subscription is only removed when the store is destroyed. */ subscribeEvent: (eventName: E, handler: TreeViewEventListener) => void; }