/** * AI autocomplete API — inline code completions for notebook cells. * * Routes live under /api and are auth-protected like the rest of the API. * Backed by the nebula-autocomplete engine, which drives a Claude Code / Codex * CLI using the user's own subscription. The CLI can run in one of two places: * * - on THIS server (default) — when the Nebula host itself has claude/codex * (a local install, or a login node where the CLIs are available); * - on the USER'S machine over the reverse SSH tunnel ("run on my machine") — * for remote Nebula where the user would rather use their own laptop's CLI + * subscription. See the `transport` field on the completion request. * * Engines are created lazily and cached per (backend, transport) so a warm pool * is reused across turns; disposed on server shutdown. */ import { FastifyInstance } from 'fastify'; export declare function disposeAutocompleteEngines(): void; export default function autocompleteRoutes(fastify: FastifyInstance): Promise;