UNPKG

vite-plugin-react-server

Version:
66 lines 2.16 kB
import type { ResolvedUserOptions, CreateHandlerOptions } from "../types.js"; /** * Store user options for a specific environment */ export declare function stashUserOptions(envId: string, userOptions: ResolvedUserOptions): void; /** * Get stashed user options for a specific environment */ export declare function getStashedUserOptions(envId: string): ResolvedUserOptions | null; /** * Clear stashed user options for a specific environment */ export declare function clearStashedUserOptions(envId: string): void; /** * Store handler options for a specific id */ export declare function stashHandlerOptions(id: string, handlerOptions: CreateHandlerOptions): void; /** * Get stashed handler options for a specific id */ export declare function getStashedHandlerOptions(id: string): CreateHandlerOptions | null; /** * Store RSC stream for a specific id (for client environments) */ export declare function stashRscStream(id: string, rscStream: any): void; /** * Get stashed RSC stream for a specific id */ export declare function getStashedRscStream(id: string): any | null; /** * Clear stashed handler options for a specific id */ export declare function clearStashedHandlerOptions(id: string): void; /** * Clear stashed RSC stream for a specific id */ export declare function clearStashedRscStream(id: string): void; /** * Clear all stashed handler options */ export declare function clearAllStashedHandlerOptions(): void; /** * Clear all stashed RSC streams */ export declare function clearAllStashedRscStreams(): void; /** * Get all stashed ids */ export declare function getStashedRoutes(): string[]; /** * Get all stashed RSC stream ids */ export declare function getStashedRscStreamRoutes(): string[]; /** * Check if handler options are stashed for a id */ export declare function hasStashedHandlerOptions(id: string): boolean; /** * Check if RSC stream is stashed for a id */ export declare function hasStashedRscStream(id: string): boolean; /** * Get environment ID from condition and mode */ export declare function getEnvironmentId(condition: string, mode: string): string; //# sourceMappingURL=stashedOptionsState.d.ts.map