UNPKG

libmodulor

Version:

A TypeScript library to create platform-agnostic applications

15 lines (14 loc) 642 B
import type { Container } from 'inversify'; import { type PropsWithChildren, type ReactElement } from 'react'; import { WordingManager } from '../../../i18n/index.js'; import type { I18nManager } from '../../../std/index.js'; export interface DIContextT { container: Container; i18nManager: I18nManager; wordingManager: WordingManager; } export declare const DIContext: import("react").Context<DIContextT | null>; export declare function useDIContext(): DIContextT; type Props = Pick<DIContextT, 'container'>; export declare function DIContextProvider({ children, container, }: PropsWithChildren<Props>): ReactElement; export {};