import type { ChokidarOptions } from '../compiled/chokidar/index.js'; import type { RsbuildInstance } from './types'; type Cleaner = () => unknown; /** * Add a cleaner to handle side effects */ export declare const onBeforeRestartServer: (cleaner: Cleaner) => void; export declare const restartDevServer: ({ filePath, clear, }?: { filePath?: string; clear?: boolean; }) => Promise; export declare function watchFilesForRestart({ files, rsbuild, isBuildWatch, watchOptions, }: { files: string[]; rsbuild: RsbuildInstance; isBuildWatch: boolean; watchOptions?: ChokidarOptions; }): Promise; export {};