/** * Fetch all libraries from BootCDN API. * * @returns {Promise>} * */ declare function fetchAllLibraries(): Promise>; /** * Fetch all library names from BootCDN API. * * @returns {Promise} * */ declare function fetchAllLibraryNames(): Promise; /** * Fetch package details from BootCDN API. * * @param {string} library The library name to fetch, as is shown from bootcdn.cn homepage. * * @returns {Promise<{ name: string, * npmName: string, version: string, * description: string, * homepage: string, * keywords: string[], * license: string, * repository: { * type: string, * url: string * }, * assets: Array<{ * version: string, * files: string[], * urls: string[], * isUnstable: boolean * }> * } | null>} * */ declare function fetchLibrary(library: string): Promise<{ name: string; npmName: string; version: string; description: string; homepage: string; keywords: string[]; license: string; repository: { type: string; url: string; }; assets: { version: string; files: string[]; urls: string[]; isUnstable: boolean; }[]; } | null>;