UNPKG

histoire

Version:

A fast story book powered by Vite

13 lines • 897 B
import type { HttpServer, ProxyOptions, ServerOptions } from 'vite'; /** Builds the exact base-aware HMR path used by Vite client and upgrade handler. */ export declare function createHostingHmr(server: HttpServer, base: string, publicOrigin?: string): ServerOptions['hmr']; /** Public path matches Vite's own posix.join(base, hmr.path), never manual doubling. */ export declare function getHostingHmrPath(base: string): string; /** Owns proxy upgrade events without patching or diffing caller server listeners. */ export declare function createHostingProxyEvents(server: HttpServer, base: string, proxy?: Record<string, string | ProxyOptions>): { /** Vite's proxy integration only registers events on this private facade. */ server: HttpServer; /** Removes exact forwarding listener and terminates only claimed proxy sockets. */ close(): void; }; //# sourceMappingURL=hmr.d.ts.map