UNPKG

@strapi/data-transfer

Version:

Data transfer capabilities for Strapi

11 lines 692 B
import type { Core } from '@strapi/types'; import type { StageTotalsEstimate } from '../../../../types'; /** * Sum sizes and counts for the same asset rows `createAssetsStream` would yield (main + formats), * skipping missing files with ENOENT like the stream does. Used for transfer progress totals / ETA. * * - **Local (`provider === 'local'`):** `stat` on disk (source of truth; matches ENOENT skips). * - **Remote:** sum `size` from DB when present on main and every format; otherwise sign + `fetch` / `Content-Length` like before. */ export declare function estimateAssetTotals(strapi: Core.Strapi): Promise<StageTotalsEstimate>; //# sourceMappingURL=estimate-asset-totals.d.ts.map