/**
 * Next.js Route Handler adapter for bunny-agent-daemon.
 *
 * Usage in Next.js app router:
 *
 *   // app/api/daemon/[...path]/route.ts
 *   import { createNextHandler } from "@bunny-agent/daemon/nextjs";
 *   const handler = createNextHandler({ root: "/workspace", prefix: "/api/daemon" });
 *   export const GET = handler;
 *   export const POST = handler;
 *
 * Requests to /api/daemon/healthz           → daemon /healthz
 * Requests to /api/daemon/api/fs/read       → daemon /api/fs/read
 * Requests to /api/daemon/api/fs/download   → daemon /api/fs/download (binary)
 * Requests to /api/daemon/api/coding/run    → daemon /api/coding/run (NDJSON stream)
 */
export declare function createNextHandler(opts: {
    root: string;
    prefix?: string;
}): (req: Request) => Promise<Response>;
//# sourceMappingURL=nextjs.d.ts.map