import { CachedResolvedSource, CachedRepoProfile, CachedTaskBrief, DocManifest, SyncState, SyncStateEntry } from '../shared/types'; export declare class StorageService { resolveRoot(rootDir?: string): string; resolvePath(rootDir: string | undefined, ...segments: string[]): string; toRelativePath(rootDir: string, absolutePath: string): string; resolveManifestPath(rootDir: string, manifestPath: string): string; ensureDir(targetPath: string): Promise; removeDir(dirPath: string): Promise; exists(targetPath: string): Promise; readText(targetPath: string): Promise; writeText(targetPath: string, content: string): Promise; readJson(targetPath: string, fallback: T): Promise; writeJson(targetPath: string, value: unknown): Promise; createContentHash(content: string): string; listManifestPaths(rootDir?: string): Promise; readManifest(manifestPath: string): Promise; readSyncState(rootDir?: string): Promise; readResolvedSources(rootDir?: string): Promise>; writeResolvedSources(rootDir: string | undefined, sources: Record): Promise; upsertResolvedSource(rootDir: string | undefined, source: CachedResolvedSource): Promise; readRetrievalCache(rootDir?: string): Promise>; writeRetrievalCache(rootDir: string | undefined, cache: Record): Promise; upsertTaskBrief(rootDir: string | undefined, entry: CachedTaskBrief): Promise; readRepoProfiles(rootDir?: string): Promise>; writeRepoProfiles(rootDir: string | undefined, profiles: Record): Promise; upsertRepoProfile(rootDir: string | undefined, entry: CachedRepoProfile): Promise; writeSyncState(rootDir: string | undefined, state: SyncState): Promise; upsertSyncStateEntry(rootDir: string | undefined, nextEntry: SyncStateEntry): Promise; listDirectories(dirPath: string): Promise; listFilesRecursively(dirPath: string, options?: { extensions?: string[]; ignoreDirs?: string[]; limit?: number; }): Promise; private walkForManifests; }