UNPKG

rsbuild-plugin-react-router

Version:
26 lines (25 loc) 1.26 kB
import * as Effect from 'effect/Effect'; import type { ReactRouterManifestForDev } from './manifest.js'; type LazyCompilationPrewarmConfig = { entry: boolean; routeLimit: number; delayMs: number; }; type LazyCompilationPrewarmController = { setServerOrigin(origin: string): void; setManifest(manifest: ReactRouterManifestForDev | null): void; schedule(): void; cancelEffect(): Effect.Effect<void, Error, never>; }; export type RspackLazyCompilationTriggerClient = { extractModuleKeys(source: string): string[]; trigger(origin: string, keys: readonly string[]): Effect.Effect<void, Error, never>; }; export declare const normalizeLazyCompilationPrewarmOptions: (options: boolean | undefined) => LazyCompilationPrewarmConfig | null; export declare const collectLazyCompilationPrewarmAssets: (manifest: ReactRouterManifestForDev, config: LazyCompilationPrewarmConfig) => string[]; export declare const createRspackLazyCompilationTriggerClient: (triggerPrefix?: string) => RspackLazyCompilationTriggerClient; export declare const createLazyCompilationPrewarmController: ({ config, onError, }: { config: LazyCompilationPrewarmConfig; onError: (error: Error) => void; }) => LazyCompilationPrewarmController; export {};