/**
 * Resolve which machine a session transcript originated on.
 *
 * Cross-machine sync mirrors a remote transcript to
 * `backups/<agent>/<machine>/<subdir>/…`. Every other transcript is a live-home
 * file on this box, so the origin is the local machine id.
 *
 * Kept in a leaf module (no session/db imports) so both discovery and the
 * sessions DB upsert path can stamp `machine` without circular deps.
 */
/** Local machine id, cached for the process lifetime. */
export declare function localMachineId(): string;
/**
 * The machine a discovered session originated on.
 * When the path sits under the agent's backups root, the first segment below it
 * is the origin machine id; otherwise it's the local machine.
 */
export declare function machineForSessionFile(filePath: string, agent: string): string;
