-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
21 lines (17 loc) · 1.16 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { TDBILocaleConstructor, DBILocale, LangConstructorObject } from "@mostfeatured/dbi/dist/types/Locale";
/**
* @param locale
* @param path path to write the yaml file from locale or locale constructor
*/
export function localeToYamlFile(locale: DBILocale | TDBILocaleConstructor<LangConstructorObject>, path: string): Promise<void>;
/**
* @param yamlPath The Yaml File Path
* @param localePath path to write "TDBILocaleConstructor as json" from yaml file
*/
export function yamlFileToLocaleFile(yamlPath: string, localePath?: string): Promise<TDBILocaleConstructor<LangConstructorObject>>;
/**
* @param yamlPath The Yaml File Path
*/
export function yamlAsLocale(yamlPath: string, localePath?: string): TDBILocaleConstructor<LangConstructorObject>;
export function packInteractionLocalesAsYamls(interactionLocales: import("discord.js").Collection<string, import("@mostfeatured/dbi/dist/types/InteractionLocale").DBIInteractionLocale>, folder: string): Promise<void>;
export function importFromInteractionYamlPack(folder: string, dbi?: import("@mostfeatured/dbi/dist/DBI").DBI): Map<string, import("@mostfeatured/dbi/dist/types/InteractionLocale").DBIInteractionLocale>