import { Plugin } from 'vite'; import { ServerResponse } from 'node:http'; type ShouldInjectFunction = (req: ServerResponse['req'], res: ServerResponse) => boolean; type Options = { /** * default ['src\/\*\*\/\*.ts', 'src\/\*\*\/\*.tsx'] */ entry?: string | string[]; ignore?: string | string[]; /** * default: true */ injectViteClient?: boolean | ShouldInjectFunction; /** * default: false */ injectReactRefresh?: boolean | ShouldInjectFunction; }; declare function ssrHotReload(options?: Options): Plugin; export { ssrHotReload as default };