UNPKG

packfs-core

Version:

Semantic filesystem operations for LLM agent frameworks with natural language understanding. See LLM_AGENT_GUIDE.md for copy-paste examples.

19 lines 671 B
/** * Disk-based storage backend */ import type { FileMetadata } from '../core/types.js'; import type { BackendInterface } from './types.js'; export declare class DiskBackend implements BackendInterface { private readonly basePath; private readonly logger; constructor(basePath: string); initialize(): Promise<void>; read(path: string): Promise<Buffer>; write(path: string, data: Buffer): Promise<void>; exists(path: string): Promise<boolean>; stat(path: string): Promise<FileMetadata>; list(path: string): Promise<string[]>; delete(path: string): Promise<void>; cleanup(): Promise<void>; } //# sourceMappingURL=disk.d.ts.map