export type PathUtils = import('./pathUtils').PathUtils; export type ProviderCreator = import('../shared/jimpleFns').ProviderCreator; export type PackageInfoServiceMap = { /** * The name of the service for * {@link PathUtils } or an instance of it. * `pathUtils` by default. */ pathUtils?: string | PathUtils; }; export type PackageInfoProviderOptions = { /** * The name that will be used to register * the result of * {@link module :node/packageInfo~packageInfo|packageInfo}. * Its default value is `packageInfo`. */ serviceName: string; /** * A dictionary with the services that need * to be injected on the function. */ services: PackageInfoServiceMap; }; /** * @module node/packageInfo */ /** * @typedef {import('./pathUtils').PathUtils} PathUtils */ /** * @typedef {import('../shared/jimpleFns').ProviderCreator} ProviderCreator * @template O */ /** * @typedef {Object} PackageInfoServiceMap * @property {string | PathUtils} [pathUtils] The name of the service for * {@link PathUtils} or an instance of it. * `pathUtils` by default. * @parent module:node/packageInfo */ /** * @typedef {Object} PackageInfoProviderOptions * @property {string} serviceName The name that will be used to register * the result of * {@link module:node/packageInfo~packageInfo|packageInfo}. * Its default value is `packageInfo`. * @property {PackageInfoServiceMap} services A dictionary with the services that need * to be injected on the function. * @parent module:node/packageInfo */ /** * Gets the contents of the implementation's `package.json`. * * @param {PathUtils} pathUtils To build the path to the `package.json`. * @returns {Object.} * @tutorial packageInfo * @todo This should be `async`, or at least have an async alternative. */ export function packageInfo(pathUtils: PathUtils): { [x: string]: any; }; /** * The service provider that once registered on the app container will set the result of * {@link module:node/packageInfo~packageInfo|packageInfo} as a service. * * @type {ProviderCreator} * @tutorial packageInfo */ export const packageInfoProvider: ProviderCreator;