type ResolvedVersionResult = {
    success: true;
    version: string | null;
} | {
    success: false;
    reason: 'version-conflict';
    fileVersion: string;
    folderVersion: string;
};
/**
 * Resolves the version for an entity by checking both the file version and folder version.
 *
 * Rules for numeric folder versions (e.g., "3.0", "3", "3.1.1"):
 * - If version exists in file, use it
 * - If version not in file, use version from folder structure (via parsePathVersions)
 * - If both exist and are different → return conflict error
 * - If neither exists → version is null
 *
 * Rules for non-numeric folder versions (e.g., "latest", "new"):
 * - If version exists in file, use it (no conflict check)
 * - If version not in file, use folder version name (e.g., "latest")
 * - If neither exists → version is null
 *
 * @param fileVersion - The version from the entity file (can be string, null, or undefined)
 * @param relativePath - The relative path of the file (e.g., "@v1/docs/intro.md")
 * @returns Resolved version result with success flag
 */
export declare function resolveEntityVersion(fileVersion: string | null | undefined, relativePath: string): ResolvedVersionResult;
export {};
//# sourceMappingURL=resolve-entity-version.d.ts.map