import { CollectionState, FiltersMap, KeyedItem, MultiCollectionSupport, TaskState } from '@wix/bex-core'; import { NestedCollectionNodeState } from './NestedCollectionNodeState'; import { TableColumn } from '../../model'; import { NestedTableNestedModeState } from './NestedTableNestedModeState'; import { ReactNode } from 'react'; import { NestedTableNodeStateBIReporter } from './NestedTableNodeStateBIReporter'; import { NestedTableLevelDescriptor } from './NestedTableLevelDescriptor'; import { NestedTableNodeStatePublicAPI } from './NestedTableNodeStatePublicAPI'; import { NestedTableNodeStateOptimisticActions } from './NestedTableNodeStateOptimisticActions'; export interface NestedTableDataItem { state: NestedTableNodeState; originalKeyedItem: KeyedItem; } export interface NestedTableSkeletonItem { state: NestedTableNodeState; originalKeyedItem: undefined; } export type NestedTableItem = NestedTableDataItem | NestedTableSkeletonItem; export type NestedTableKeyedItem = KeyedItem>; export type RenderMainColumn = (item: T) => { title?: string; subtitle?: string; image?: ReactNode; }; export type NestedTableNestColumns = Partial['render']>>; export interface NestedTableNodeStateParams { readonly nestedTable: NestedTableNestedModeState; readonly node: NestedCollectionNodeState; readonly levelDescriptor: NestedTableLevelDescriptor; readonly parentNode: NestedTableNodeState | null; readonly parent: KeyedItem | null; readonly preRegister?: boolean; } export declare class NestedTableNodeState implements NestedTableNodeStatePublicAPI { readonly nestedTable: NestedTableNestedModeState; readonly node: NestedCollectionNodeState; readonly levelDescriptor: NestedTableLevelDescriptor; readonly parentNode: NestedTableNodeState | null; readonly parent: KeyedItem | null; readonly bi: NestedTableNodeStateBIReporter; readonly multi: MultiCollectionSupport; _rowNum?: number; readonly initTask: TaskState; readonly parentKeyToChildrenMap: Map>; readonly parentKeyToChildrenMapAtom: import("mobx").IAtom; constructor(params: NestedTableNodeStateParams); get collection(): CollectionState; get unprocessedMap(): Map; get children(): CollectionState; get optimisticActions(): NestedTableNodeStateOptimisticActions; get flatModeCollection(): CollectionState | undefined; get depth(): number; get childrenDepth(): number; get deepestBranchDepth(): number; get hasExpandableItems(): boolean; get _childrenCount(): number; get _expanded(): boolean; get columns(): Partial ReactNode>> | undefined; get renderMainColumn(): RenderMainColumn | undefined; get showHoverHighlight(): boolean; _changeHover(hovered: boolean): void; get showEmptyState(): boolean; get showLoadingState(): boolean; get showErrorState(): boolean; get errorStatus(): import("@wix/bex-core").QueryResultStatusError, unknown> | null; retryErrorState: () => void; get _isNotExpandableWhenEmpty(): boolean; _isExpandableActionDisabled(item: T): boolean; isNotExpandable(item: T): boolean; get _keyedItemsIfExpanded(): NestedTableKeyedItem[]; get _keyedItemsMap(): Map>; get _allKeyedItemsMap(): Map>; get _allKeyedItems(): NestedTableKeyedItem[]; _getKeyedItems({ onlyExpanded, }: { onlyExpanded?: boolean; }): NestedTableKeyedItem[]; get keyedItems(): NestedTableKeyedItem[]; getKeyedItem(key: string): NestedTableKeyedItem | undefined; getDescendants(): NestedTableNodeStatePublicAPI[]; _getNode(key: string): NestedTableNodeState | undefined; getParent(): NestedTableNodeStatePublicAPI | null; getData(): TD | null; toggleExpand(): void; get expanded(): boolean; getKeyedItemByIndex(ind: number): NestedTableKeyedItem; _register(): (() => void) | undefined; _refreshAll(): Promise; _toggleExpand(): Promise; _preRegisterAll(): Promise; _notify(): void; _notifyAll(): void; _cleanupStaleNodes(): import("mobx").IReactionDisposer; init({ skipCollectionInit }?: { skipCollectionInit?: boolean; }): () => void; createNode({ parent, notifyAll, }: { parent: KeyedItem; notifyAll?: boolean; }): NestedTableNodeState | null; } //# sourceMappingURL=NestedTableNodeState.d.ts.map