/** * Returns an object containing the size of the folder and a list of errors encountered while traversing the folder. * * If any errors are returned, the returned folder size is likely smaller than the real folder size. * * @param {string} itemPath - Path of the folder. * @param {object} [options] - Options. * @param {boolean} [options.bigint] - Should the folder size be returned as a BigInt instead of a Number. * @param {object} [options.ignore] - If a file's path matches this regex object, its size is not counted. * @param {object} [options.fs] - The filesystem that should be used. Uses node fs by default. * * @returns {Promise<{size: number | bigint, errors: Array | null}>} - An object containing the size of the folder in bytes and a list of encountered errors. */ export declare const getFolderSize: { (itemPath: any, options: any): Promise; /** * Returns the size of the folder. If any errors are encountered while traversing the folder, they are silently ignored. * * The returned folder size might be smaller than the real folder size. It is impossible to know for sure, since errors are ignored. * * @param {string} itemPath - Path of the folder. * @param {object} [options] - Options. * @param {boolean} [options.bigint] - Should the folder size be returned as a BigInt instead of a Number. * @param {object} [options.ignore] - If a file's path matches this regex object, its size is not counted. * @param {object} [options.fs] - The filesystem that should be used. Uses node fs by default. * * @returns {Promise} - The size of the folder in bytes. */ loose(itemPath: any, options: any): Promise; /** * Returns the size of the folder. If any errors are encountered while traversing the folder, this method will throw an error. * * Because errors will otherwise make this method fail, the returned folder size will always be accurate. * * @param {string} itemPath - Path of the folder. * @param {object} [options] - Options. * @param {boolean} [options.bigint] - Should the folder size be returned as a BigInt instead of a Number. * @param {object} [options.ignore] - If a file's path matches this regex object, its size is not counted. * @param {object} [options.fs] - The filesystem that should be used. Uses node fs by default. * * @returns {Promise} - The size of the folder in bytes. */ strict(itemPath: any, options: any): Promise; };