massive update, probably broken
[dotfiles/.git] / .config / coc / extensions / node_modules / coc-json / node_modules / vscode-nls / lib / main.d.ts
diff --git a/.config/coc/extensions/node_modules/coc-json/node_modules/vscode-nls/lib/main.d.ts b/.config/coc/extensions/node_modules/coc-json/node_modules/vscode-nls/lib/main.d.ts
new file mode 100644 (file)
index 0000000..8c1377f
--- /dev/null
@@ -0,0 +1,29 @@
+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