import type { DirEntry, FileInfo } from "../platform/adapters/base.js"; export type { CacheRepositoryOptions, CacheStats, RepositoryContext } from "./schemas/index.js"; import type { CacheStats, RepositoryContext } from "./schemas/index.js"; export interface FileSystemRepository { readFile(path: string): Promise; readFileBytes(path: string): Promise; readFileBytesBounded?(path: string, byteLimit: number): Promise; readFileBytesWithinLimit?(path: string, byteLimit: number): Promise; readFileSnapshotWithinLimit?(path: string, byteLimit: number): Promise; readonly maxWholeFileReadBytes?: number; /** Write UTF-8 text. Binary writes require an explicitly binary repository API. */ writeFile(path: string, content: string): Promise; exists(path: string): Promise; stat(path: string): Promise; readDir(path: string): AsyncIterable; mkdir(path: string, options?: { recursive?: boolean; }): Promise; remove(path: string, options?: { recursive?: boolean; }): Promise; readonly context: RepositoryContext; } export interface CacheRepository { get(key: string): Promise; set(key: string, value: T, ttlSeconds?: number): Promise; delete(key: string): Promise; deleteByPrefix?(prefix: string): Promise; getStats?(): CacheStats; has?(key: string): Promise; clear?(): Promise; readonly context: RepositoryContext; } //# sourceMappingURL=types.d.ts.map