import type {
    NCoreUIKitBase
} from ".";
import type {
    NCoreUIKitConfig,
    LocalizeType,
    ThemesType
} from "../types";
import type NCoreUIKitLocalizeClass from "../context/localize";
import type NCoreUIKitModalClass from "../context/modal";
import type NCoreUIKitThemeClass from "../context/theme";

export let NCoreUIKitLocalize: NCoreUIKitLocalizeClass<LocalizeType>;
export let NCoreUIKitTheme: NCoreUIKitThemeClass<ThemesType>;
export let NCoreUIKitModal: NCoreUIKitModalClass;

export const initializeInstances = (NCoreUIKit: NCoreUIKitBase<NCoreUIKitConfig>) => {
    NCoreUIKitLocalize = NCoreUIKit.NCoreUIKitContext.NCoreUIKitLocalize;
    NCoreUIKitTheme = NCoreUIKit.NCoreUIKitContext.NCoreUIKitTheme;
    NCoreUIKitModal = NCoreUIKit.NCoreUIKitContext.NCoreUIKitModal;
};
