/** True when `path` exists and is readable. */ export declare function pathExists(path: string): Promise; /** Read a UTF-8 file, returning `undefined` when unreadable. */ export declare function readText(path: string): Promise; /** Iterate the parsed objects of a JSONL file; malformed lines are skipped. */ export declare function readJsonl(path: string): Promise; /** List directory entries, `[]` when missing. */ export declare function listDir(path: string): Promise; /** Stat a path, `undefined` when missing. */ export declare function tryStat(path: string): Promise; /** Recursively collect files under `root` whose names match `match`, bounded. */ export declare function collectFiles(root: string, match: (name: string, fullPath: string) => boolean, options?: { maxDepth?: number; maxFiles?: number; }): Promise; /** Narrow an unknown JSON value to a plain object. */ export declare function asObject(value: unknown): Record | undefined; /** Narrow to a string, or `undefined`. */ export declare function asString(value: unknown): string | undefined; /** Narrow to a finite number, or `undefined`. */ export declare function asNumber(value: unknown): number | undefined; /** Parse a timestamp that may be epoch ms, epoch seconds, or an ISO string. */ export declare function asTime(value: unknown): number | undefined;