import type { FastifySchema, RouteHandler, HTTPMethods } from "fastify"; import type { oas31 } from "openapi3-ts"; import { $RefParser } from "@apidevtools/json-schema-ref-parser"; export type $Refs = $RefParser["$refs"]; export interface ParsedConfig { $refs: $Refs; shared: oas31.SchemaObject | undefined; generic: Omit; routes: ParsedRoute[]; prefix?: string; } export interface ParsedRoute { method: HTTPMethods; url: string; schema: FastifySchema; operationId: string; openapiSource: oas31.OperationObject; wildcard?: string; handler?: RouteHandler; } export default function parse(specOrPath: string | oas31.OpenAPIObject): Promise; /** Bundle Specification file. */ export declare function bundleSpecification(spec: string | oas31.OpenAPIObject, { path }?: { path?: string; }): Promise;