import { BrowserGroup } from '@shopify/build-targets'; import Runner from '../../runner'; import { Workspace, Project, Config } from '../../workspace'; import type { WebpackJSON } from '../../utilities'; export interface CompilationMessages { errors: string[]; warnings: string[]; } export interface HMROptions { errorOverlay: boolean; hotFullReload: boolean; } export declare function manifestName({ project, config, }: { config: Config; project: Project; }): string; export declare function buildConsolidatedManifest(workspace: Workspace, manifestPaths: string[], runner: Runner): Promise; export declare function getHMRPath(publicPath: string): string; export declare function addHMRConfig(_workspace: Workspace, config: any, options: HMROptions): Promise; export declare function buildHotPath(config: any, options: HMROptions): string; export declare function addHMRClientPathEntry(config: any, options: HMROptions): void; 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 interface LogStatsOptions { name: string; onlyErrors?: boolean; lastMessages?: CompilationMessages; } export declare function formatWebpackMessages(stats: import('webpack').Stats, loggedStats?: CompilationMessages): 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 | string; moduleAssets?: boolean; nestedModules?: boolean; optimizationBailout?: boolean; outputPath?: boolean; } } } export declare function getErrorsAndWarnings(stats: import('webpack').Stats): { errors: string[]; warnings: string[]; }; //# sourceMappingURL=utilities.d.ts.map