import {
    type ReactElement,
    type ReactNode
} from "react";
import type ITextProps from "../components/text/type";

export type LocalizeType = {
    initialSelectedLocale?: NCoreUIKit.LocaleKey;
    projectLocales?: NCoreUIKit.Locales;
};

export type LocaleType = "en-US" | "tr-TR";

export type LocalizeContextStateType = Partial<LocalizeContextType>;

export type LocalizeContextType = {
    translations: NCoreUIKit.Translation;
    localizeWithObject: (
        translation: keyof NCoreUIKit.Translation,
        parameters?: Array<string | ReactNode | ReactElement>,
        props?: Array<ITextProps>
    ) => string;
    activeLocale: NCoreUIKit.LocaleKey;
    localize: (
        translation: keyof NCoreUIKit.Translation,
        parameters?: Array<string | number>
    ) => string;
    isRTL: boolean;
};
