UNPKG

patchwork-mapconverter

Version:

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

14 lines (13 loc) 575 B
/// <reference types="node" /> import { type WarResult, type JsonResult } from '../CommonInterfaces'; import { type Translator } from './Translator'; import { type Sound } from '../data/Sound'; export declare class SoundsTranslator implements Translator<Sound[]> { private static instance; private constructor(); static getInstance(): SoundsTranslator; static jsonToWar(sounds: Sound[]): WarResult; static warToJson(buffer: Buffer): JsonResult<Sound[]>; jsonToWar(soundsJson: Sound[]): WarResult; warToJson(buffer: Buffer): JsonResult<Sound[]>; }