import { SpinnerLike } from "./spinner"; import EmberProject from "./ember-project"; import { ModuleSizes } from "./module"; import { BundleSizes } from "./bundle"; /** * Stats data store * @beta */ declare class Stats { /** * Name of the CSV file */ private csvFileName; /** * Name of the dataset */ private dataSetName; private bundleRows; private moduleRows; private isSaved; private headers; private readonly appendData; constructor( /** * Name of the CSV file */ csvFileName: string, /** * Name of the dataset */ dataSetName: string, options?: { append?: boolean; }); /** * Add a bundle's size information to the data set * @param bundleName - name of the bundle * @param sizes - bundle asset sizes */ addBundleRow(bundleName: string, sizes: BundleSizes): void; /** * Add a module's size information to the data set * @param bundleName - name of the bundle that this module belongs to * @param fileName - name of this module * @param sizes - size information for this bundle */ addModuleRow(bundleName: string, fileName: string, sizes: ModuleSizes): void; /** * Save this data set as a CSV file * @param project - ember-cli project * @param spinner - optional loading spinner */ save(project: EmberProject, spinner?: SpinnerLike): Promise; } export default Stats;