@clusterio/host
Version:
Implementation of Clusterio host server
26 lines • 1.06 kB
TypeScript
import JSZip from "jszip";
import type { FactorioServer } from "./server";
/**
* Exports the locale files for the base game and the given mods
*
* Parses and merges all the locales for the all the mods given through
* `modVersions` and `modOrder`.
*
* @param server - The server to export the locale from.
* @param modVersions - Mapping of mod name to version to export locale from.
* @param modOrder - Load order of the mods.
* @param languageCode - Language to export locale for.
* @returns merged locale information
* @internal
*/
declare function exportLocale(server: FactorioServer, modVersions: Map<string, string>, modOrder: string[], languageCode: string): Promise<Map<string, string>>;
/**
* Export the locale and item icons for the given factorio server
*
* @param server - The server to export the data from.
* @returns zip file with exported data.
*/
export declare function exportData(server: FactorioServer): Promise<JSZip>;
export declare const _exportLocale: typeof exportLocale;
export {};
//# sourceMappingURL=export.d.ts.map