import * as React from 'react'; export default function createReactContext( defaultValue: T, calculateChangedBits?: (prev: T, next: T) => number ): Context; type RenderFn = (value: T) => React.ReactNode; export type Context = { Provider: React.ComponentClass>; Consumer: React.ComponentClass>; }; export type ProviderProps = { value: T; children: React.ReactNode; }; export type ConsumerProps = { children: RenderFn | [RenderFn]; observedBits?: number; };