export type TextRecord = { key: string; text: string; html?: boolean; }; export type ResolvedTextRecord = TextRecord & { resolved: boolean; }; export declare class I18NTexts { private localeTexts; addTexts(locale: string, textList: TextRecord[]): void; /** * 현재 언어코드에서 `key` 에 해당하는 `TextRecord` 를 리턴한다. * @param key * @param args */ t(key: string, args?: unknown[]): ResolvedTextRecord; /** * `locale` 언어코드에서 `key` 에 해당하는 `TextRecord` 를 리턴한다. * @param locale * @param key * @param args */ text(locale: string, key: string, args?: unknown[]): ResolvedTextRecord; private resolveText; private ensureAddLocale; } export declare const i18n: I18NTexts;