import type { NextRequest } from "next/server"; import { type GeistdocsConfig } from "../config"; export declare const DEFAULT_SITE_OPENAPI_PATH = "/openapi.json"; export interface CreateOpenApiRouteOptions { config: Pick; /** * Which package-owned API routes the site mounts. Defaults follow * `config.search.enabled` and `config.ai.enabled`; override when the route * files differ from the feature flags. The Markdown discovery routes are * always listed. */ endpoints?: { chat?: boolean; search?: boolean; }; transform?: (document: GeistdocsOpenApiDocument, context: { request: NextRequest; }) => Promise | GeistdocsOpenApiDocument; } type JsonSchema = Record; interface OpenApiOperation { description: string; operationId: string; parameters?: Record[]; requestBody?: Record; responses: Record; summary: string; tags: string[]; } export interface GeistdocsOpenApiDocument { components: { schemas: Record; }; info: { contact?: { name: string; url: string; }; description: string; summary: string; title: string; version: string; }; openapi: "3.1.0"; paths: Record>; security: never[]; servers: { description: string; url: string; }[]; tags: { description: string; name: string; }[]; } export declare const createOpenApiRoute: ({ config, endpoints, transform, }: CreateOpenApiRouteOptions) => { GET: (request: NextRequest) => Promise; generateStaticParams: () => { lang: string; }[]; revalidate: false; }; export {}; //# sourceMappingURL=openapi.d.ts.map