import type { IHmrManager } from '../../../types/public-types.js'; /** * Returns whether a response is HTML and therefore eligible for development HMR * runtime injection. */ export declare function isHtmlResponse(response: Response): boolean; /** * Returns whether HTML responses should receive the HMR runtime bootstrap. * * This is shared because filesystem page responses and adapter-level HTML * responses flow through different layers, but both need identical injection * behavior in watch mode. */ export declare function shouldInjectHmrHtmlResponse(watch: boolean, hmrManager?: Pick, hostOwnsDevClient?: boolean): boolean; /** * Injects the development HMR runtime script into an HTML response if it is not * already present. * * The check is intentionally idempotent because an HTML response can pass * through more than one development-layer wrapper before reaching the client. */ export declare function injectHmrRuntimeIntoHtmlResponse(response: Response): Promise;