UNPKG

patchwork-mapconverter

Version:

Executable wrapper for https://github.com/ChiefOfGxBxL/WC3MapTranslator

28 lines (27 loc) 866 B
/// <reference types="node" /> import { type WarResult, type JsonResult } from '../wc3maptranslator/CommonInterfaces'; import { type Translator } from '../wc3maptranslator/translators'; export declare class CustomScriptsTranslator implements Translator<{ headerComments: string[]; scripts: string[]; }> { private static instance; private constructor(); static getInstance(): CustomScriptsTranslator; static jsonToWar(json: { headerComments: string[]; scripts: string[]; }): WarResult; static warToJson(buffer: Buffer): JsonResult<{ headerComments: string[]; scripts: string[]; }>; jsonToWar(json: { headerComments: string[]; scripts: string[]; }): WarResult; warToJson(buffer: Buffer): JsonResult<{ headerComments: string[]; scripts: string[]; }>; }