import _formatWebpackMessages from 'react-dev-utils/formatWebpackMessages'; import { BrowserGroup, Target } from '@shopify/build-targets'; import Runner from '../../runner'; import { Workspace } from '../../workspace'; export interface CompilationMessages { errors: string[]; warnings: string[]; } export declare function buildDir({ project, env, paths }: Workspace): string; export declare function assetsBuildDir(workspace: Workspace, browserTarget?: Target): string; export declare function getManifestPath(workspace: Workspace, { target }?: { target?: Target; }): string; export declare function getAssetServerMetadata(workspace: Workspace): { host: string; port: number; }; export declare function buildConsolidatedManifest(workspace: Workspace, targets: Target[], runner: Runner): Promise; export declare function getHMRPath(publicPath: string): string; export declare function addHMRConfig(_workspace: Workspace, config: any): Promise; export declare type EntryList = string | string[]; export interface EntryObject { [key: string]: EntryList; } export declare type Entry = EntryList | EntryObject; export declare function prependToEntries(entry: Entry, entryModule: string): Entry; export declare function addVendorToEntries(entries: Entry, vendor: string | string[]): Entry; export interface LogStatsOptions { name: string; onlyErrors?: boolean; lastMessages?: CompilationMessages; } export declare function formatWebpackMessages(stats: import('webpack').Stats, loggedStats?: CompilationMessages): _formatWebpackMessages.WebpackJSON; export declare function compileTime(stats: import('webpack').Stats): string; export declare function compileTimeMs(stats: import('webpack').Stats): number; export declare function logStats({ logger }: Runner, stats: import('webpack').Stats, { name, onlyErrors, lastMessages }: LogStatsOptions): void; export declare function HeapTracker(): { start(): any; stop(): number; }; export declare function resolveBrowser(browser?: string): string | BrowserGroup.LatestEvergreen | undefined; declare module 'webpack' { namespace Stats { interface ToJsonOptionsObject { chunkGroups?: boolean; colors?: boolean; moduleAssets?: boolean; nestedModules?: boolean; optimizationBailout?: boolean; outputPath?: boolean; } } } export declare function getErrorsAndWarnings(stats: import('webpack').Stats): any; //# sourceMappingURL=utilities.d.ts.map