UNPKG

@junobuild/admin

Version:

A library for interfacing with admin features of Juno

24 lines (23 loc) 1.03 kB
import type { SatelliteParameters } from '../types/actor.types'; /** * Counts the documents in a collection. * @param {Object} params - The parameters for counting the documents. * @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 documents in the collection. */ export declare const countDocs: (params: { collection: string; satellite: SatelliteParameters; }) => Promise<bigint>; /** * Deletes the documents in a collection. * @param {Object} params - The parameters for deleting the documents. * @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 documents are deleted. */ export declare const deleteDocs: (params: { collection: string; satellite: SatelliteParameters; }) => Promise<void>;