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 670 B
/** * In-memory storage backend for testing and caching */ import type { FileMetadata } from '../core/types.js'; import type { BackendInterface } from './types.js'; export declare class MemoryBackend implements BackendInterface { private files; private readonly logger; constructor(); 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=memory.d.ts.map