import { readFile } from "node:fs/promises";
//#region src/session/parity/sessions-json-file-read.ts
/**
* Raw disk read for sessions.json (no in-memory cache).
*/
async function readSessionsJsonFileRaw(storePath) {
	try {
		const raw = await readFile(storePath, "utf-8");
		const parsed = JSON.parse(raw);
		if (!parsed || typeof parsed !== "object" || Array.isArray(parsed)) return {};
		return parsed;
	} catch {
		return {};
	}
}
//#endregion
export { readSessionsJsonFileRaw };

//# sourceMappingURL=sessions-json-file-read.js.map