UNPKG

vite-plugin-react-server

Version:
19 lines 1.34 kB
import type { CssContent, ResolvedUserOptions, HmrState } from "../../types.js"; import type { PassThrough } from "node:stream"; export declare const activeStreams: Map<string, PassThrough>; export declare const cssFiles: Map<string, CssContent>; export declare const moduleIds: Map<string, string>; export declare const temporaryReferences: WeakMap<any, any>; export declare const hmrState: Map<string, HmrState>; export declare function addCssFileContent(id: string, code: string, userOptions: Pick<ResolvedUserOptions, "projectRoot" | "moduleBaseURL" | "moduleBasePath" | "moduleRootPath" | "css" | "normalizer" | "moduleID" | "publicOrigin">): void; export declare function isModuleInvalidated(path: string): boolean; export declare function clearHmrState(path: string): void; export declare function getInvalidatedModules(): string[]; export declare function addModuleId(id: string, url: string): void; export declare function cacheComponent(id: string, component: any): void; export declare function getCachedComponent(id: string): any; export declare function hasCachedComponent(id: string): boolean; export declare function clearCachedComponent(id: string): void; export declare function clearAllCachedComponents(): void; export declare function getModuleId(id: string): string | undefined; //# sourceMappingURL=state.server.d.ts.map