/** * Compiles a theme configuration by loading and validating theme files * * @param {Object} params - Compilation parameters * @param {Object} params.themeConfig - Theme configuration object * @param {string} params.themeConfig.name - Theme name (defaults to 'bernova') * @param {string} params.themeConfig.prefix - CSS variable prefix * @param {Object} params.themeConfig.theme - Theme styles configuration * @param {Object} params.themeConfig.foundations - Foundation styles configuration * @param {Object} params.themeConfig.globalStyles - Global styles configuration * @param {Object} params.themeConfig.mediaQueries - Media queries configuration * @param {string} params.themeConfig.stylesPath - Output path for generated styles * @param {Array} params.themeConfig.fonts - Font configurations * @param {boolean} params.themeConfig.resetCss - Whether to include CSS reset * @param {Object} params.themeConfig.bvTools - Development tools configuration * @param {Object} params.themeConfig.typesTools - TypeScript tools configuration * @param {Array} params.themeConfig.foreignThemes - External theme integrations * @param {string} params.dir - Base directory for resolving relative paths * @returns {Object} Compiled theme data and configuration */ export function compileThemes({ themeConfig: { name, prefix, theme, foundations, globalStyles, mediaQueries, stylesPath, fonts, resetCss, bvTools, typesTools, foreignThemes, }, dir, }: { themeConfig: { name: string; prefix: string; theme: any; foundations: any; globalStyles: any; mediaQueries: any; stylesPath: string; fonts: any[]; resetCss: boolean; bvTools: any; typesTools: any; foreignThemes: any[]; }; dir: string; }): any;