/** * @file Config - esLoader * @module mkbuild/config/esLoader */ import type { Config } from '../interfaces/index.mjs'; /** * Loads an [ESM][1] (`*.js`, `*.mjs`) or TypeScript (`*.cts`, `*.mts`, `*.ts`) * build config file. * * [1]: https://nodejs.org/api/esm.html * * @see https://github.com/davidtheclark/cosmiconfig#loaders * * @async * * @param {string} path - Absolute path to config file * @param {string} content - Config file content * @return {Promise} Build configuration options */ declare const esLoader: (path: string, content: string) => Promise; export default esLoader;