/**
 * Next.js Plugin for almostnode
 *
 * Provides utilities for serving the service worker file in Next.js applications.
 */
/**
 * Get the contents of the almostnode service worker file.
 * Use this in a Next.js API route or middleware to serve the service worker.
 *
 * @example
 * ```typescript
 * // app/api/__sw__/route.ts (App Router)
 * import { getServiceWorkerContent } from '@agent-wasm/core/next';
 *
 * export async function GET() {
 *   const content = getServiceWorkerContent();
 *   return new Response(content, {
 *     headers: {
 *       'Content-Type': 'application/javascript',
 *       'Cache-Control': 'no-cache',
 *     },
 *   });
 * }
 * ```
 *
 * @example
 * ```typescript
 * // pages/api/__sw__.ts (Pages Router)
 * import { getServiceWorkerContent } from '@agent-wasm/core/next';
 * import type { NextApiRequest, NextApiResponse } from 'next';
 *
 * export default function handler(req: NextApiRequest, res: NextApiResponse) {
 *   const content = getServiceWorkerContent();
 *   res.setHeader('Content-Type', 'application/javascript');
 *   res.setHeader('Cache-Control', 'no-cache');
 *   res.send(content);
 * }
 * ```
 */
export declare function getServiceWorkerContent(): string;
/**
 * Get the path to the almostnode service worker file.
 * Useful if you want to copy it to your public directory.
 *
 * @example
 * ```javascript
 * // scripts/copy-sw.js
 * const { getServiceWorkerPath } = require('@agent-wasm/core/next');
 * const fs = require('fs');
 * const path = require('path');
 *
 * const swPath = getServiceWorkerPath();
 * fs.copyFileSync(swPath, path.join(__dirname, '../public/__sw__.js'));
 * ```
 */
export declare function getServiceWorkerPath(): string;
declare const _default: {
    getServiceWorkerContent: typeof getServiceWorkerContent;
    getServiceWorkerPath: typeof getServiceWorkerPath;
};
export default _default;
//# sourceMappingURL=next-plugin.d.ts.map