import { OpenAPIV3_2 } from "./types/openapi.js"; import { DereferencedDocument } from "./utils/document/dereference.js"; import { InlineCodeUsageGenerator } from "./requests/generators/index.js"; import { CreateOpenAPIPageOptions } from "./ui/index.js"; import { OpenAPIOptions } from "./server/index.js"; import { FC, ReactNode } from "react"; import { SchemaUIOptions } from "@fumadocs/api-docs/components/schema"; //#region src/types.d.ts type Document = OpenAPIV3_2.Document; type OperationObject = OpenAPIV3_2.OperationObject & { 'x-codeSamples'?: InlineCodeUsageGenerator[]; 'x-selectedCodeSample'?: string; 'x-exclusiveCodeSample'?: string; }; type ParameterObject = OpenAPIV3_2.ParameterObject; type PathItemObject = OpenAPIV3_2.PathItemObject; type TagObject = OpenAPIV3_2.TagObject; type ResponseObject = OpenAPIV3_2.ResponseObject; type HttpMethods = OpenAPIV3_2.HttpMethods; type RequireKeys = Omit & Required>; interface RenderContext extends Pick, Omit, 'schemaUI'> { /** * dereferenced schema */ schema: DereferencedDocument; _default_processMarkdown: (md: string) => ReactNode; SchemaUI: FC>; } type DistributiveOmit = T extends unknown ? Omit : never; type Awaitable = T | Promise; //#endregion export { Awaitable, DistributiveOmit, Document, HttpMethods, OperationObject, ParameterObject, PathItemObject, RenderContext, ResponseObject, TagObject };