import { PblNgridComponent, PblNgridExtensionApi } from '@pebula/ngrid'; import * as B from '../built-in-handlers/index'; import { PblNgridStateOptions } from './options'; export interface StateChunkItem { state: TState; value?: TValue; data?: TData; keyless: TKeyless; } export interface RootStateChunks extends B.BuiltInRootStateChunks { } export interface StateChunks extends RootStateChunks, B.BuiltInStateChunks { } export interface PblNgridStateContext { grid: PblNgridComponent; extApi: PblNgridExtensionApi; options: PblNgridStateOptions; } export interface PblNgridStateChunkSectionContext extends PblNgridStateContext { } export interface PblNgridStateChunkContext extends PblNgridStateChunkSectionContext { source: StateChunks[T]['value']; data?: StateChunks[T]['data']; runChildChunk?(childChunkId: TChild, state: StateChunks[TChild]['state'], source: StateChunks[TChild]['value'], data?: StateChunks[TChild]['data']): any; } export interface PblNgridStateMetadata { updatedAt: string; } export interface PblNgridGlobalState extends B.PblNgridBuiltInGlobalState { __metadata__: PblNgridStateMetadata; }