/** * Markdown formatting utilities. */ import type { Language } from "../types/index.js"; import type { ProjectSearchEntry, ProjectHeader, PublicationDetails } from "../types/api.js"; /** * Escapes user input for safe embedding in inline Markdown code spans. * Strips newlines and escapes backticks. */ export declare function escapeInlineCode(value: string): string; /** * Builds the simap.ch URL for a project. */ export declare function buildSimapUrl(projectId: string, lang: Language): string; /** * Formats a project search entry for display. */ export declare function formatProject(project: ProjectSearchEntry, lang: Language): string; /** * Formats project header information. */ export declare function formatProjectHeader(header: ProjectHeader, lang: Language, projectId?: string): string; /** * Formats publication details. * * Sections are rendered only when the underlying data is present. The response * shape varies by publication `type` (tender / award / ...) — no one section * is guaranteed. */ export declare function formatPublicationDetails(details: PublicationDetails, lang: Language): string; /** * Creates a markdown header with optional count. */ export declare function formatHeader(title: string, count?: number): string;