1 | import * as React from 'react';
|
2 | import { ListAction } from './listActions.types';
|
3 | import { ListItemState } from './useList.types';
|
4 | export interface ListContextValue<ItemValue> {
|
5 | dispatch: (action: ListAction<ItemValue>) => void;
|
6 | getItemState: (item: ItemValue) => ListItemState;
|
7 | }
|
8 | export declare const ListContext: React.Context<ListContextValue<any> | null>;
|