import { CollectionState, FiltersMap, WixPatternsContainer } from '@wix/bex-core'; import { ToolbarCollectionState, ToolbarCollectionStateParamsInitParams } from './ToolbarCollectionState'; import { GridBaseState } from './GridBaseState'; import { GridSectionsState } from '../components/GridSections/GridSectionsState'; import { ICollectionComponentState } from './ICollectionComponentState'; import { GridSizePreset } from './gridSizePresets'; export interface GridStateParams { readonly collection: CollectionState; readonly container: WixPatternsContainer; readonly toolbar?: ToolbarCollectionState; } export interface GridStateInitParams extends ToolbarCollectionStateParamsInitParams { } export interface GridStatePublicAPI { /** * Underlying [CollectionState](./?path=/story/common-state--collectionstate) instance * @external */ readonly collection: CollectionState; /** * Underlying [ToolbarCollectionState](./?path=/story/common-state--toolbarcollectionstate) instance * @external */ readonly toolbar: ToolbarCollectionState; /** * Reset active filters & sorting and adds new items to the collection. * @param items - new items to add to the collection * @external */ onAddItemActionComplete(items: T[]): void; } export declare class GridState implements GridStatePublicAPI, ICollectionComponentState { readonly toolbar: ToolbarCollectionState; readonly container: WixPatternsContainer; readonly collection: CollectionState; readonly _subGrids: GridBaseState[]; _sizePreset: GridSizePreset | undefined; _sections?: GridSectionsState; constructor(params: GridStateParams); init(params: GridStateInitParams): () => void; onAddItemActionComplete: (items: T[]) => Promise; } //# sourceMappingURL=GridState.d.ts.map