import { type DevServerOptions } from "@hono/vite-dev-server";
import { type RuntimeBkndConfig } from "bknd/adapter";
import type { MiddlewareHandler } from "hono";
export type ViteEnv = NodeJS.ProcessEnv;
export type ViteBkndConfig<Env = ViteEnv> = RuntimeBkndConfig<Env> & {
    serveStatic?: false | MiddlewareHandler;
};
export declare function addViteScript(html: string, addBkndContext?: boolean): string;
export declare function serve<ViteEnv>(config?: ViteBkndConfig<ViteEnv>, args?: ViteEnv): {
    fetch(request: Request, env: any, ctx: ExecutionContext): Promise<Response>;
};
export declare function devServer(options: DevServerOptions): import("vite").Plugin<any>;
