UNPKG

wp-host

Version:

Automated WordPress hosting deployment tool for bulk site creation with MySQL database management

69 lines 1.91 kB
import { Config, MySQLConfig, WordPressConfig } from "./types"; export declare class ConfigParser { private static noDbSuffix; /** * Set whether to use _db suffix for database names */ static setNoDbSuffix(value: boolean): void; /** * Parse configuration file (JSON or CSV) */ static parseConfig(configPath: string): Promise<Config>; /** * Parse JSON configuration file */ private static parseJsonConfig; /** * Parse CSV configuration file */ private static parseCsvConfig; /** * Parse comprehensive CSV format with all configuration included */ private static parseComprehensiveCSV; /** * Parse simple CSV format (legacy support - requires environment variables) */ private static parseSimpleCSV; /** * Auto-generate database names and users if not provided */ private static autoGenerateDbInfo; /** * Create header mapping for both technical and user-friendly headers */ private static createHeaderMap; /** * Map row data using header mapping */ private static mapRowData; /** * Validate configuration structure and data */ private static validateConfig; /** * Validate individual site configuration */ private static validateSiteConfig; /** * Validate MySQL configuration */ private static validateMySQLConfig; /** * Validate WordPress configuration */ private static validateWordPressConfig; /** * Check for duplicate site names and database names */ private static checkDuplicates; /** * Get default MySQL configuration */ static getDefaultMySQLConfig(): MySQLConfig; /** * Get default WordPress configuration */ static getDefaultWordPressConfig(): WordPressConfig; } //# sourceMappingURL=config-parser.d.ts.map