/** * Versioning support for Docusaurus-style versioned docs. * * Handles version discovery and path resolution for multi-version * documentation sites. */ import type { MarkdownSourceConfig, VersioningConfig } from './config.js'; /** * Version info with source path. */ export interface VersionInfo { /** Version identifier (e.g., "2026.07.01", "next") */ version: string; /** Path to the content for this version */ contentPath: string; /** Whether this is the "next" (unreleased) version */ isNext: boolean; } /** * Read versions from versions.json file. */ export declare function readVersionsFile(versionsFile: string): string[]; /** * Discover all versions to index based on config. * * @param source - Markdown source configuration * @param versioning - Versioning configuration * @returns Array of version info objects */ export declare function discoverVersions(source: MarkdownSourceConfig, versioning: VersioningConfig | undefined, currentVersion?: string): VersionInfo[]; /** * Get the guide name from a versioned content path. * * For Docusaurus versioned docs, the content structure might be different * from the main content. This function extracts the guide name. */ export declare function getGuideFromVersionedPath(versionedPath: string, source: MarkdownSourceConfig): string; /** * Check if a version is the "current" (latest released) version. * * @param version - Version identifier * @param latestVersion - The version designated as "latest" * @returns True if this version should be treated as current */ export declare function isCurrentVersion(version: string, latestVersion?: string): boolean; //# sourceMappingURL=versioning.d.ts.map