import type { ResponseResult } from '@fougere/http'; import type { AppLike } from '../routes/RouteDefinition.js'; /** The page that reads the document, by the word `openapi: { ui }` names it — `true` is Swagger UI. */ declare const PAGES: { swagger: (url: string) => string; scalar: (url: string) => string; }; export type DocsPage = keyof typeof PAGES; /** * What REST publishes of itself — `{prefix}/openapi.json` when `protocols: { rest: { openapi: {} } }` * says so, and `{prefix}/docs` reading it when `ui` says which page — or `undefined` for any other * request. Nothing is published without the line: the document names every op and what each refuses * at once, and a page loads code from elsewhere, which is a decision of its own. */ export declare function describedAt(app: AppLike, method: string, path: string): ResponseResult | undefined; /** The paths `describedAt` answers, for a router that mounts each one. */ export declare function describedPaths(app: AppLike): string[]; export {}; //# sourceMappingURL=described.d.ts.map