import { FileOutput } from "./types"; /** * Handles writing config exports to files. * Supports single file output or multiple files (one per config). */ export declare class FileWriter { /** * Write multiple config files (one per config in array) */ static writeMultipleFiles(outputs: FileOutput[], targetDir: string): void; /** * Write a single file */ static writeSingleFile(filePath: string, content: string): void; /** * Generate filename for a config export * Format without build: {bundler}-{env}-{type}.{ext} * Format with build: {bundler}-{build}-{type}.{ext} * * @param bundler - The bundler type (webpack, rspack) * @param env - The environment (development, production, test) * @param configType - Type of config. Built-in: "client", "server", "all", "client-hmr". Custom: any string from outputs array * @param format - Output format (yaml, json, inspect) * @param buildName - Optional build name that overrides env in filename * * @example * // Built-in types * generateFilename("webpack", "development", "client", "yaml") * // => "webpack-development-client.yml" * * @example * // Custom output names * generateFilename("webpack", "development", "client-modern", "yaml", "dev-hmr") * // => "webpack-dev-hmr-client-modern.yml" */ static generateFilename(bundler: string, env: string, configType: string, format: "yaml" | "json" | "inspect", buildName?: string): string; private static writeFile; private static ensureDirectory; /** * Validate output path and warn if writing outside cwd */ private static validateOutputPath; } //# sourceMappingURL=fileWriter.d.ts.map