/** * Git Knowledge Layer - Load knowledge from Git repositories * Supports authentication, branch selection, and caching */ import { BaseKnowledgeLayer } from './base-layer.js'; import { AtomicTopic } from '../types/bc-knowledge.js'; import { LayerLoadResult, ConfigGitLayerSource, AuthConfiguration } from '../types/index.js'; export declare class GitKnowledgeLayer extends BaseKnowledgeLayer { private readonly gitConfig; private readonly auth?; private readonly cacheDir; private git; private localPath; private lastUpdated?; constructor(name: string, priority: number, gitConfig: ConfigGitLayerSource, auth?: AuthConfiguration, cacheDir?: string); initialize(): Promise; private ensureCacheDirectory; private setupGitWithAuth; private configureAuthentication; private ensureRepository; private prepareUrlWithAuth; private checkoutBranch; private loadFromDirectory; private loadTopicsFromDirectory; private getRelativePath; private getCurrentCommitHash; private getRepositorySize; private generateUrlHash; refresh(): Promise; protected loadTopics(): Promise; protected loadIndexes(): Promise; /** * Load a single atomic topic from a markdown file */ private loadAtomicTopic; /** * Normalize topic ID from file path */ protected normalizeTopicId(filePath: string, basePath?: string): string; /** * Validate topic structure */ protected validateTopic(topic: AtomicTopic): boolean; getSourceInfo(): { type: "git"; url: string; branch: string; subpath: string; localPath: string; lastUpdated: Date; hasAuth: boolean; }; } //# sourceMappingURL=git-layer.d.ts.map