import { ServerPlugin } from '.'; import { FSWatcher } from 'chokidar'; import MagicString from 'magic-string'; import { InternalResolver } from '../resolver'; import LRUCache from 'lru-cache'; import { HMRPayload } from '../../hmrPayload'; export declare const debugHmr: any; export declare type HMRWatcher = FSWatcher & { handleVueReload: (filePath: string, timestamp?: number, content?: string) => void; handleJSReload: (filePath: string, timestamp?: number) => void; send: (payload: HMRPayload) => void; }; declare type HMRStateMap = Map>; export declare const hmrAcceptanceMap: HMRStateMap; export declare const hmrDeclineSet: Set; export declare const importerMap: HMRStateMap; export declare const importeeMap: HMRStateMap; export declare const hmrDirtyFilesMap: LRUCache>; export declare const latestVersionsMap: Map; export declare const hmrPlugin: ServerPlugin; export declare function ensureMapEntry(map: HMRStateMap, key: string): Set; export declare function rewriteFileWithHMR(root: string, source: string, importer: string, resolver: InternalResolver, s: MagicString): void; export {};