export { apply };
import type { UserConfig } from 'vite';
declare function apply(when: 'dev' | 'preview', { skipMiddlewareMode, onlyViteCli }?: {
skipMiddlewareMode?: true;
onlyViteCli?: true;
}): (config: UserConfig, { command, mode }: {
command: string;
mode: string;
}) => boolean;