import { type OpenApiVersion } from './specifications.js';
/**
 * Detects the OpenAPI/Swagger version of a document by looking at its top-level
 * `openapi` (3.x) or `swagger` (2.0) field.
 *
 * This is an intentionally small, internal copy of the parser's version
 * detection. It is kept private so the validator does not depend on the parser.
 */
export declare function detectVersion(document: unknown): OpenApiVersion | undefined;
//# sourceMappingURL=detect-version.d.ts.map