import React from 'react'; import { IHasChildren } from '../types/props'; import { CommonContexts } from '../types/contexts'; import { IHistory4 } from './routing'; import { UuiServicesProps } from '../hooks/useUuiServices'; export interface ContextProviderProps extends UuiServicesProps, IHasChildren { /** Callback to load the AppContext data. AppContext is used to load global data, before application mount */ loadAppContext?: (api: TApi) => Promise; /** Called when all contexts were initiated */ onInitCompleted(svc: CommonContexts): void; /** Instance of react-router history. * Note, that it should be the same object which you passed to the Router. * */ history?: IHistory4; /** Code of Google Analytics. * If provided, user interactions events will be sent to your GA. * */ gaCode?: string; } export declare function ContextProvider(props: ContextProviderProps): React.JSX.Element; export declare function useUuiContext(): CommonContexts; //# sourceMappingURL=ContextProvider.d.ts.map