/**
 * Parses a fetched spec body as either JSON or YAML.
 *
 * JSON is tried first (the common case and fastest path); on a parse
 * failure the body is treated as YAML. YAML is parsed by wrapping the
 * document in front-matter delimiters so the bundled `gray-matter`
 * engine reads the whole file — the same approach the eval YAML loader
 * uses, avoiding a second YAML dependency.
 */
export declare function parseSpecDocument(text: string): unknown;
/**
 * Picks a base URL from an OpenAPI document's `servers` array.
 *
 * Returns the first server whose URL resolves to an absolute `http(s)`
 * origin: `{var}` placeholders are substituted with each variable's
 * `default`, and a relative URL (e.g. `/api/v3`) is resolved against
 * `specSource` when the spec was supplied as a URL. Returns `undefined`
 * when no entry yields an absolute URL.
 */
export declare function extractServerUrl(document: Record<string, unknown>, specSource: string | Record<string, unknown> | undefined): string | undefined;
