/** * Shared article formatting utilities * * Provides consistent Markdown formatting for article output * used by both get-article and batch-get-articles tools. */ import type { ArticleSection, FetchArticleResult } from '../types.js'; interface RelatedArticle { title: string; url: string; } /** * Options for full (non-compact) article formatting. * All fields are optional so that batch-get-articles can omit them. */ export interface FormatArticleFullOptions { /** Show breadcrumb trail above the title */ breadcrumb?: string[] | undefined; /** Show "Last Updated" in metadata line */ lastUpdated?: string | undefined; /** Show "Showing section: ..." note */ section?: string | undefined; /** Show the sections list when content is truncated */ sections?: ArticleSection[] | undefined; /** Include related article links at the bottom */ relatedArticles?: RelatedArticle[] | undefined; /** Use brief footer (source link only, no token count line). Default: false */ briefFooter?: boolean | undefined; } /** * Format an article in compact mode. * * Shows only a preview (~500 tokens) of the content plus a list of all * available sections so the AI knows what can be retrieved in full. * * Output: title, compact metadata, content preview, truncation notice, * available sections list, compact footer. */ export declare function formatArticleCompact(article: FetchArticleResult): string; /** * Format an article in full mode. * * Output: breadcrumb (optional), title, full metadata, section note (optional), * separator, content, sections list (optional), related articles (optional), * full footer. */ export declare function formatArticleFull(article: FetchArticleResult, options?: FormatArticleFullOptions): string; export {}; //# sourceMappingURL=format-article.d.ts.map