/** Build the canonical record path for a given session/rid/timestamp. */ export declare function dispatchRecordPath(projectRoot: string, sid: string, rid: string, ts?: Date): string; /** The directory under which dispatch records live. */ export declare function dispatchRecordsDir(projectRoot: string, sid: string): string; /** * Assert that `recordPath` lives under `projectRoot/.peaks/_sub_agents//`. * Rejects symlink/junction escapes and `..` segments. * * `projectRoot` and `recordPath` may be two spellings of the same directory — * macOS resolves `/var` (and `/tmp`) into `/private`, so `os.tmpdir()` and the * kernel disagree — and that is accepted, not refused. See the comparison * below. * * Throws an Error with `.code = 'INVALID_RECORD_PATH'` on rejection so * the CLI can map to `{ok: false, code: "INVALID_RECORD_PATH"}`. */ export declare function assertSafeDispatchRecordPath(recordPath: string, projectRoot: string): string;