UNPKG

@junobuild/admin

Version:

A library for interfacing with admin features of Juno

24 lines (23 loc) 1.01 kB
import type { SatelliteParameters } from '../types/actor.types'; /** * Counts the assets in a collection. * @param {Object} params - The parameters for counting the assets. * @param {string} params.collection - The name of the collection. * @param {SatelliteParameters} params.satellite - The satellite parameters. * @returns {Promise<bigint>} A promise that resolves to the number of assets in the collection. */ export declare const countAssets: (params: { collection: string; satellite: SatelliteParameters; }) => Promise<bigint>; /** * Deletes the assets in a collection. * @param {Object} params - The parameters for deleting the assets. * @param {string} params.collection - The name of the collection. * @param {SatelliteParameters} params.satellite - The satellite parameters. * @returns {Promise<void>} A promise that resolves when the assets are deleted. */ export declare const deleteAssets: (params: { collection: string; satellite: SatelliteParameters; }) => Promise<void>;