/// /// import { RasterizerName } from '@swirly/types'; import { Writable } from 'node:stream'; import { stylesByTheme } from './themes.js'; export declare type ThemeName = keyof typeof stylesByTheme; export declare type CommandLineOptions = { inFilePath: string; outFilePath: string | null; theme: ThemeName; force: boolean; optimize: boolean; scale: number; rasterizer: RasterizerName; rasterizationServer?: string; }; export declare type FormatOutputOptions = { xml: string; width: number; height: number; scale: number; filename: string | null; rasterizer: RasterizerName; rasterizationServer?: string; }; export declare type WriteStreamFactory = (file: string | null, force: boolean) => Writable; export declare type Writer = { match: (file: string | null) => boolean; formatOutput: (options: FormatOutputOptions) => Promise; createWriteStream: WriteStreamFactory; };