/**
 * Vite Plugin for almostnode
 *
 * Serves the service worker file from the package's dist directory,
 * enabling seamless integration when almostnode is installed as an npm package.
 */
import type { Plugin } from 'vite';
export interface AlmostnodePluginOptions {
    /**
     * The URL path where the service worker will be served
     * @default '/__sw__.js'
     */
    swPath?: string;
}
/**
 * Vite plugin that serves the almostnode service worker file.
 *
 * When almostnode is installed as an npm package, the service worker file
 * is located at node_modules/almostnode/dist/__sw__.js but the browser
 * tries to load it from the root URL (/__sw__.js). This plugin intercepts
 * requests to the service worker path and serves the file from the correct location.
 *
 * @example
 * ```typescript
 * // vite.config.ts
 * import { defineConfig } from 'vite';
 * import { almostnodePlugin } from '@agent-wasm/core/vite';
 *
 * export default defineConfig({
 *   plugins: [almostnodePlugin()]
 * });
 * ```
 */
export declare function almostnodePlugin(options?: AlmostnodePluginOptions): Plugin;
export default almostnodePlugin;
//# sourceMappingURL=vite-plugin.d.ts.map