/** * Bitemporal git access for memory validity (add-bitemporal-typed-memory-operations). * * Memory carries a deterministic valid-time marker — the `HEAD` commit SHA at record * time — and `asOf` / `changedSince` recall compare a memory's commit against a * caller-supplied commit-ish using git ancestry. Everything here is read-only and * deterministic: the same repository state yields the same answer, with no LLM and no * wall-clock dependence. Reuses the project's existing git subprocess access and the * argument-injection guard (`validateGitRef`); adds no new git surface. */ /** * The current `HEAD` commit SHA, or `undefined` when not a git repo / no commits yet * (a fresh repo). Never throws — an unanchorable record simply omits `validFromCommit`. */ export declare function getHeadCommit(rootPath: string): Promise; /** * Resolve a caller-supplied commit-ish (branch, tag, SHA, HEAD~1, …) to a full commit * SHA, or `undefined` when it does not resolve. Validated against the same * argument-injection guard used elsewhere; the ref operand is placed after `--`. */ export declare function resolveCommitSha(rootPath: string, ref: string): Promise; /** * True when `ancestor` is an ancestor of (or equal to) `descendant`. Both MUST already * be resolved SHAs (callers resolve commit-ish first). Returns false on any git error * (e.g. an unknown commit from rewritten history) so a non-comparable memory is excluded * rather than silently treated as in-range. */ export declare function isAncestor(rootPath: string, ancestor: string, descendant: string): Promise; //# sourceMappingURL=git-time.d.ts.map