import type { KbCreateRequest, KbDirectoryPage, KbFile, KbRenameRequest, KbSearchResult, KbTree, KbView } from '../../shared/kb.js'; import { KbRegistryStore, KbStore } from '../storage/schema/kb.store.js'; import { type KbDirectoryBrowse } from './kb.helper.js'; export declare class KbRegistryService { private readonly registry; private kbsCache; private readonly services; constructor(registry?: KbRegistryStore); clearCaches(): void; listKbs(): Promise; browseKbDirectories(rawPath: string | undefined): Promise; createKbDirectory(rawParent: string | undefined, rawName: string): Promise; addKb(input: KbCreateRequest): Promise; ensureDefaultTeamKbForAgentHome(homePath: string): Promise; serviceFor(id: string): KbService; private resolvedKbs; } export declare class KbService { private readonly id; private readonly store; private readonly onMutation; private visibleFilesCache; private visibleFilesLoad; private cacheEpoch; constructor(id: string, store?: KbStore, onMutation?: () => void); clearCaches(): void; getKb(): Promise; rename(input: KbRenameRequest): Promise; remove(): Promise; buildTree(): Promise; listDirectory(rawPath: string, rawCursor: string | undefined): Promise; searchFiles(rawQuery: string, shouldStop?: () => boolean): Promise; readFile(rawPath: string): Promise; resolveRawFile(rawPath: string): Promise<{ absPath: string; contentType: string; }>; private resolvedKb; private resolveTrackedPath; private resolveVisibleKbPath; private resolveVisibleDirectory; private isVisiblePath; private visibleKbFiles; private rootGitignoreFilter; private collectVisibleFiles; } export declare const defaultKbRegistryService: KbRegistryService; //# sourceMappingURL=kb.service.d.ts.map