import { MAX_ARTICLES_DEPTH } from '../../LibrariesSidebar/constants';
import { type SidebarArticleLike, type SidebarArticleTree, type SidebarModel, type SidebarNodeFilterContext, type SidebarNodePredicate } from '../../LibrariesSidebar/types/model';
/** Root list: GET /knowledge-libraries → PaginatedResponse items. */
export declare const adaptFromRootArticles: (articles: SidebarArticleLike[]) => SidebarModel;
/** Nested tree: GET /knowledge-libraries/:id/children-tree → ArticleTree. */
export declare const adaptFromChildrenTree: (tree: SidebarArticleTree | undefined | null, viewParentId?: number) => SidebarModel;
/** Pick root vs nested model after both queries have been adapted. */
export declare const resolveSidebarModel: (isRoot: boolean, rootArticles: SidebarArticleLike[], childrenModel?: SidebarModel | null) => SidebarModel;
/** Recompute direct-child counts from the flat node list (e.g. after filtering). */
export declare const recalculateChildCounts: (model: SidebarModel) => SidebarModel;
/** Filter nodes with a consumer-provided predicate and refresh child counts. */
export declare const applySidebarNodeFilter: (model: SidebarModel, predicate: SidebarNodePredicate, context: SidebarNodeFilterContext) => SidebarModel;
export { MAX_ARTICLES_DEPTH };
