--- /dev/null
+export declare enum MessageFormat {\r
+ file = "file",\r
+ bundle = "bundle",\r
+ both = "both"\r
+}\r
+export declare enum BundleFormat {\r
+ standalone = "standalone",\r
+ languagePack = "languagePack"\r
+}\r
+export interface Options {\r
+ locale?: string;\r
+ cacheLanguageResolution?: boolean;\r
+ messageFormat?: MessageFormat;\r
+ bundleFormat?: BundleFormat;\r
+}\r
+export interface LocalizeInfo {\r
+ key: string;\r
+ comment: string[];\r
+}\r
+export interface LocalizeFunc {\r
+ (info: LocalizeInfo, message: string, ...args: (string | number | boolean | undefined | null)[]): string;\r
+ (key: string, message: string, ...args: (string | number | boolean | undefined | null)[]): string;\r
+}\r
+export interface LoadFunc {\r
+ (file?: string): LocalizeFunc;\r
+}\r
+export declare type KeyInfo = string | LocalizeInfo;\r
+export declare function loadMessageBundle(file?: string): LocalizeFunc;\r
+export declare function config(opts?: Options): LoadFunc;\r