/** * JSONL File Operations * * Utilities for reading and writing JSONL (JSON Lines) files. * Each line is a valid JSON object, making it append-friendly and streamable. */ /** * Ensure directory exists for a file path */ export declare function ensureDir(filePath: string): Promise; /** * Append a record to a JSONL file */ export declare function appendJsonl(filePath: string, record: T): Promise; /** * Read all records from a JSONL file */ export declare function readJsonl(filePath: string): Promise; /** * Read records from a JSONL file with filtering */ export declare function queryJsonl(filePath: string, predicate: (record: T) => boolean, options?: { limit?: number; }): Promise; /** * Update a record in a JSONL file by rewriting * Note: This is O(n) - for frequent updates consider a different storage */ export declare function updateJsonl(filePath: string, predicate: (record: T) => boolean, updater: (record: T) => T): Promise; /** * Find a single record in a JSONL file */ export declare function findJsonl(filePath: string, predicate: (record: T) => boolean): Promise; //# sourceMappingURL=jsonl.d.ts.map