import type { KbTreeNode, KbView } from '../../shared/kb.js'; export declare class KbError extends Error { readonly statusCode: number; constructor(statusCode: number, message: string); } export interface KbDirectoryBrowse { path: string; entries: KbDirectoryEntry[]; } export interface KbDirectoryEntry { name: string; path: string; } export interface ResolvedKbRoot { id: string; label: string; path: string; teamId: string; } export declare const INLINE_TEXT_CAP: number; export declare const CACHE_TTL_MS = 5000; export declare const KB_ID: RegExp; export declare function normalizeRelPath(raw: string): string; export declare function kbView(kb: ResolvedKbRoot): KbView; export declare function requiredString(value: unknown, field: string): string; export declare function expandHome(path: string): string; export declare function buildTree(paths: string[], mtimes?: ReadonlyMap): KbTreeNode[]; export declare function contentTypeFor(relPath: string): string; //# sourceMappingURL=kb.helper.d.ts.map