import type { Compiler } from '@rspack/core'; import type { BootRegistrationsOutcome, LateReloadRestart, ReloadAckOutcome, ReloadRestartOutcome } from '../dev-server/control-bridge/contracts.js'; import type { ReloadInstruction } from './classify-reload.js'; interface UndeliveredReloadContext { producerRestartExpected?: boolean; } export interface ReloadBroker { broadcastReload(instruction: { type: ReloadInstruction['type']; changedContentScriptEntries?: string[]; label?: string; changedFiles?: string[]; changedScriptFiles?: string[]; refreshedStylesheets?: { file: string; digest: string; }[]; standalonePages?: string[]; build?: string; }): number; runsBuild(build: string): boolean; undeliveredReloadWarning(context?: UndeliveredReloadContext): string | null; deliverLatchedReload(): Promise; awaitReloadAck(): Promise; reloadReplayedTabs(): number; awaitReloadRestart(): Promise; awaitLateReloadRestart(): Promise; awaitBootRegistrations(timeoutMs: number): Promise; noteReloadApplied(kind: ReloadKind, label?: string): void; } type ReloadKind = 'full' | 'background' | 'content' | 'page' | 'safari-resync'; export declare function reloadKindFor(type: ReloadInstruction['type']): ReloadKind; interface ReloadExecutor { broker?: ReloadBroker; producerRestartExpected?: boolean; build?: string; } export declare const DEV_BUILD_GLOBAL = "__extjsDevBuild"; export declare function fullReloadsDeliveredTo(broker: ReloadBroker | undefined): number; export declare function dispatchRestartReload(executor: ReloadExecutor, fullReloadsBefore: number): Promise; export declare function dispatchReload(instruction: ReloadInstruction | undefined, executor: ReloadExecutor): Promise; interface ChangedSourcesSnapshot { forcedFull: boolean; changedSources: string[]; } export interface ChangedSourcesTracker { snapshot(): ChangedSourcesSnapshot; } export declare function noteManifestPath(compiler: object, manifestPath: string): void; export declare function createChangedSourcesTracker(compiler: Compiler): ChangedSourcesTracker; export {};