IOweb/node_modules/@iconify/tools/lib/download/npm/version.d.mts
2026-07-03 15:07:38 -05:00

16 lines
455 B
TypeScript

import { NPMPackageOptions } from './types.mjs';
interface GetNPMVersionResult {
version: string;
file?: string;
}
/**
* Get version of package from NPM registry
*/
declare function getNPMVersion(options: NPMPackageOptions): Promise<GetNPMVersionResult>;
/**
* Get version of package from filename
*/
declare function getPackageVersion(target: string): Promise<string>;
export { type GetNPMVersionResult, getNPMVersion, getPackageVersion };