import React, { ComponentType } from 'react'; import * as types from '../service/types'; declare type TerraConfig = { appConfig?: types.AppConfig; psConfig?: types.PSConfiguration; }; declare type ResourceState = { isInitiated: boolean; isInitializing: boolean; initializeError?: string; }; declare type TerraContextValue = { initialize: () => void; terraConfig?: TerraConfig; state: ResourceState; }; declare const TerraContext: React.Context; declare const TerraContextProvider: React.FC; declare function withTerraContext(Component: ComponentType): (props: T) => JSX.Element; export { TerraContext, TerraContextProvider, withTerraContext };