// @flow import { Component, type Node } from 'react'; type RenderFn = (value: T) => Node; export type ProviderProps = { value: T, children?: Node }; export type ConsumerProps = { children: RenderFn | [RenderFn], observedBits?: number }; export type ConsumerState = { value: T }; export type Provider = Component>; export type Consumer = Component, ConsumerState>; export type Context = { Provider: Class>, Consumer: Class> }; declare export default function createReactContext( defaultValue: T, calculateChangedBits?: (prev: T, next: T) => number ): Context;