import type { HttpGet } from "./http.js"; import type { IndexedDoc, SearchHit } from "./types.js"; export declare const FORUM_ORIGIN = "https://forum.d-robotics.cc"; export declare const FORUM_ID = "forum"; export declare const FORUM_ALIASES: string[]; export declare const FORUM_BOARDS: readonly [{ readonly id: 39; readonly slug: "kai-fa-yu-wen-ti"; readonly name: "开发与问题"; }, { readonly id: 4; readonly slug: "general"; readonly name: "通用"; }]; export declare function isForumRef(idOrAlias: string): boolean; export declare function forumListing(): { id: string; title: string; category: string; description: string; homeUrl: string; searchable: boolean; indexKind: "discourse"; aliases: string[]; note: string; }; export declare function parseForumTopicId(urlOrPath: string): number | undefined; export declare function forumTopicJsonUrl(urlOrPath: string): string | undefined; export declare function forumTopicUrl(topic: { id: number; slug?: string; }): string; export declare function boardLatestUrl(board: { id: number; slug?: string; }): string; export declare function parseForumCategoryId(urlOrPath: string): number | undefined; export declare function isForumHome(urlOrPath: string): boolean; export declare function forumCategoryName(id: number): string; export declare function categoryListToMarkdown(raw: unknown, url: string, boardName: string): { title: string; url: string; markdown: string; }; export declare function compactDiscourseTopicList(raw: unknown, boardName: string): IndexedDoc[]; export declare function compactDiscourseSearch(raw: unknown): IndexedDoc[]; export declare function topicToMarkdown(raw: unknown, url: string): { title: string; url: string; markdown: string; }; export declare function forumHitsFromDocs(docs: IndexedDoc[], query: string, limit: number, fillFrom?: IndexedDoc[]): SearchHit[]; export declare function searchForum(query: string, http: HttpGet, limit: number): Promise; export declare function listForumTopics(http: HttpGet, query?: string): Promise>; export declare function getForumTopic(url: string, http: HttpGet): Promise<{ title: string; url: string; markdown: string; }>; export declare function getForumPage(url: string, http: HttpGet): Promise<{ title: string; url: string; markdown: string; }>;