fs.d.cts 742 B

12345678910111213141516
  1. import { IconifyJSON } from '@iconify/types';
  2. import { AutoInstall } from './types.cjs';
  3. import '@antfu/utils';
  4. import '../customisations/defaults.cjs';
  5. /**
  6. * Asynchronously loads a collection from the file system.
  7. *
  8. * @param name {string} the name of the collection, e.g. 'mdi'
  9. * @param autoInstall {AutoInstall} [autoInstall=false] - whether to automatically install
  10. * @param scope {string} [scope='@iconify-json'] - the scope of the collection, e.g. '@my-company-json'
  11. * @return {Promise<IconifyJSON | undefined>} the loaded IconifyJSON or undefined
  12. */
  13. declare function loadCollectionFromFS(name: string, autoInstall?: AutoInstall, scope?: string, cwd?: string): Promise<IconifyJSON | undefined>;
  14. export { loadCollectionFromFS };