import type { SkillSearchResult } from "../api/client.js";
/**
 * Extract `owner/repo` from a GitHub URL.
 */
export declare function extractBaseRepo(repoUrl: string | undefined): string | null;
/**
 * Format skill display: `owner/repo/skill-name`.
 * Uses slug fields when available, falls back to extracting from repoUrl/name.
 */
export declare function formatSkillId(r: SkillSearchResult): string;
/**
 * Build the verified-skill.com URL for a skill.
 * Uses hierarchical slug fields (owner/repo/skill) when available,
 * falls back to flat name.
 */
export declare function getSkillUrl(r: SkillSearchResult): string;
/**
 * Return a colored trust badge string.
 * Prefers certTier (formal certification status shown on website)
 * over trustTier (computed trust score tier).
 */
export declare function getTrustBadge(certTier: string | undefined, trustTier: string | undefined): string;
/**
 * Rank search results for display and selection.
 *
 * Sort order:
 * 1. Blocked results at end
 * 2. Exact skillSlug match (case-insensitive) promoted to first among non-blocked
 * 3. Cert tier: CERTIFIED > VERIFIED > other
 * 4. GitHub stars descending
 * 5. Score descending
 */
export declare function rankSearchResults(results: SkillSearchResult[], exactQuery?: string): SkillSearchResult[];
/**
 * Format a single search result line for TTY display.
 * Matches the `vskill find` output format.
 */
export declare function formatResultLine(r: SkillSearchResult): string;
