export type ReloadType = 'full' | 'service-worker' | 'content-scripts'; interface RefreshedStylesheet { file: string; digest: string; } export interface ReloadInstruction { type: ReloadType | 'page'; changedContentScriptEntries?: string[]; staticContentScriptEntries?: string[]; changedAssets?: string[]; changedScriptFiles?: string[]; refreshedStylesheets?: RefreshedStylesheet[]; standalonePages?: string[]; label?: string; } /** "context (fileA, fileB +2 more)", the one label every reload surface shows. */ export declare function formatReloadContextLabel(context: string, files: string[]): string; export interface SourceFeatureIndex { swSources: Set; /** Source → canonical content_scripts entry names whose chunks contain it. */ contentEntriesBySource: Map>; pageSources: Set; /** Source → emitted scripts/ bundle names whose chunks contain it. */ scriptFilesBySource?: Map>; /** Project-relative public/ roots the copier ships at the dist root. */ publicRoots?: string[]; } export declare function publicOutputPath(rel: string, publicRoots: string[] | undefined): string | undefined; export declare function buildSourceFeatureIndex(compilation: import('@rspack/core').Compilation, contextDir: string): SourceFeatureIndex; export declare function classifyReloadFromSources(opts: { changedSources: string[]; forcedFull?: boolean; getContentScriptCount: () => number; getSourceFeatureIndex?: () => SourceFeatureIndex | null; outputPath?: string; contextDir?: string; }): ReloadInstruction | undefined; export declare function readContentScriptFiles(compilation: import('@rspack/core').Compilation): string[]; export declare function readContentScriptDigests(compilation: import('@rspack/core').Compilation, files: string[]): Record; export declare function reloadForRewrittenContentScripts(instruction: ReloadInstruction | undefined, loadedDigests: Record, emittedDigests: Record, options?: { refreshInPlace?: boolean; }): ReloadInstruction | undefined; export declare function reloadForRenamedContentScripts(instruction: ReloadInstruction | undefined, loadedFiles: string[], emittedFiles: string[]): ReloadInstruction | undefined; export declare function readWebAccessibleResources(compilation: import('@rspack/core').Compilation): string[]; export declare function reloadForNewWebResources(instruction: ReloadInstruction | undefined, loadedResources: string[], emittedResources: string[]): ReloadInstruction | undefined; export declare function createLoadedContentScripts(options: { refreshInPlace: boolean; }): { noteLoaded(compilation: import('@rspack/core').Compilation): void; resolve(compilation: import('@rspack/core').Compilation, classified: ReloadInstruction | undefined): ReloadInstruction | undefined; settle(delivered: boolean): void; }; export declare function readContentScriptCount(compilation: import('@rspack/core').Compilation, outputPath: string): number; export {};