HEX
Server: Apache/2.4.65 (Debian)
System: Linux kubikelcreative 5.10.0-35-amd64 #1 SMP Debian 5.10.237-1 (2025-05-19) x86_64
User: www-data (33)
PHP: 8.4.13
Disabled: NONE
Upload Files
File: /var/www/indoadvisory_new/webapp/node_modules/@hono/vite-dev-server/dist/dev-server.d.ts
import { Plugin } from 'vite';
import { Env, EnvFunc, LoadModule, Adapter } from './types.js';

type DevServerOptions = {
    entry?: string;
    export?: string;
    injectClientScript?: boolean;
    exclude?: (string | RegExp)[];
    ignoreWatching?: (string | RegExp)[];
    env?: Env | EnvFunc;
    loadModule?: LoadModule;
    /**
     * This can be used to inject environment variables into the worker from your wrangler.toml for example,
     * by making use of the helper function `getPlatformProxy` from `wrangler`.
     *
     * @example
     *
     * ```ts
     * import { defineConfig } from 'vite'
     * import devServer from '@hono/vite-dev-server'
     * import getPlatformProxy from 'wrangler'
     *
     * export default defineConfig(async () => {
     *    const { env, dispose } = await getPlatformProxy()
     *    return {
     *      plugins: [
     *        devServer({
     *          adapter: {
     *            env,
     *            onServerClose: dispose
     *          },
     *        }),
     *      ],
     *    }
     *  })
     * ```
     *
     *
     */
    adapter?: Adapter | Promise<Adapter> | (() => Adapter | Promise<Adapter>);
};
declare const defaultOptions: Required<Omit<DevServerOptions, 'env' | 'adapter' | 'loadModule'>>;
declare function devServer(options?: DevServerOptions): Plugin;

export { DevServerOptions, defaultOptions, devServer };