/** * Express middleware: append SLICC's standard RFC 8288 `Link` header set to * every local `/api/*` response that describes a SLICC capability. Mirrors * `applySliccLinks` in the cloudflare-worker so any SLICC HTTP surface * advertises the same discoverable capabilities. * * Skipped for `/api/fetch-proxy`: that endpoint is a transparent CORS-bypass * relay, so injecting localhost discovery rels there would pollute downstream * `discover` consumers with bogus self-referential links. Also bails out if * an earlier middleware already flushed response headers. */ import type { NextFunction, Request, Response } from 'express'; /** * Returns Express middleware that appends Link entries on every `/api/*` * response except `/api/fetch-proxy` (a transparent relay). Uses `res.append` * so existing Link headers survive intact. */ export declare function sliccLinksMiddleware(): (req: Request, res: Response, next: NextFunction) => void; /** * Build the `GET /api` descriptor — a minimal JSON catalog of localhost * endpoints. Mirrors what the cloudflare-worker's `/.well-known/api-catalog` * does for the public surface, but scoped to the local CLI server. */ export declare function buildLocalApiDescriptor(host: string): unknown;