import React from 'react'; declare type ListObjShape = { id: string | number; state: string | number; [extraAttr: string]: any; }; declare type StateShape = { listChecked: ListObjShape[] | []; allChecked: boolean; }; declare type ActionShape = { type: 'ADD_ITEM_CHECKED'; payload: ListObjShape; } | { type: 'REMOVE_ITEM_CHECKED'; payload: { id: string | number; idName: string; }; } | { type: 'ALL_ITEM_CHECKED'; payload: { isChecked: boolean; itemsChecked: ListObjShape[] | []; }; }; declare const CheckListProvider: (props: { children?: React.ReactNode; }) => JSX.Element; export declare const CheckListContext: React.Context<{ state: StateShape; dispatch: React.Dispatch; }>; export default CheckListProvider;