/** * Reads and parses JSON configuration data from a file * Supports both .json and .js configuration files * * @param {string} filePath - The absolute path to the configuration file * @returns {Promise} The parsed configuration data * @throws {Error} When file cannot be read or parsed */ export function readConfigData(filePath: string): Promise; /** * Reads and loads theme data from TypeScript/JavaScript modules * Dynamically requires modules and extracts named exports * * @param {Object} paths - Object containing path and export name configurations * @param {string} paths[].path - Relative or absolute path to the module file * @param {string} paths[].name - Named export to extract from the module * @returns {Object} Object with loaded theme data keyed by the original path keys * @throws {Error} When module cannot be loaded or export is not found * * @example * const paths = { * foundations: { path: './design/foundations.ts', name: 'FOUNDATIONS' }, * theme: { path: './design/theme.ts', name: 'THEME' } * }; * const data = readThemeData(paths); * // Returns: { foundations: {...}, theme: {...} } */ export function readThemeData(paths: { path: string; name: string; }): any;