import { ConvertAiToSvgWithInkscapeNodeCommandInputModel, ConvertAiToSvgWithInkscapeNodeOutputModel, ConvertImageWithImageMagickNodeCommandInputModel, ConvertImageWithImageMagickNodeOutputModel, } from '../../../../../code/type/index.js';
import { buildCommandToConvertAIToSVGWithInkscape, buildCommandToConvertImageWithImageMagick, } from '../command.js';
import { runCommandSequence } from '../../../../../code/tool/node/command.js';
export async function convertImageWithImageMagickNodeLocal(input) {
    const commandInput = ConvertImageWithImageMagickNodeCommandInputModel.parse(input);
    const sequence = buildCommandToConvertImageWithImageMagick(commandInput);
    await runCommandSequence(sequence);
    return ConvertImageWithImageMagickNodeOutputModel.parse({
        output: {
            file: {
                path: input.output.file.path,
            },
        },
    });
}
export async function convertImageWithInkscapeLocal(input) {
    const commandInput = ConvertAiToSvgWithInkscapeNodeCommandInputModel.parse(input);
    const sequence = await buildCommandToConvertAIToSVGWithInkscape(commandInput);
    await runCommandSequence(sequence);
    return ConvertAiToSvgWithInkscapeNodeOutputModel.parse({
        output: {
            file: {
                path: input.output.file.path,
            },
        },
    });
}
//# sourceMappingURL=local.js.map