import { ReactNode } from 'react'; declare type Provider = { (props: { value: Contract; children?: ReactNode | ReactNode[]; }): JSX.Element; displayName?: string; }; declare type Context = { Provider: Provider; consume: () => Contract; }; declare type EnforceToPassContract = Contract extends void ? "Missing type parameter 'Contract'. You must provide a contract type for creating context." : string; declare function createContext(name: string & EnforceToPassContract): Context; export { createContext };