import type { WorldStore } from '../world-store.js'; export declare class GitRefs { private readonly store; private readonly prefix; constructor(store: WorldStore, prefix: string); private path; get(name: string): string | null; set(name: string, sha: string): void; delete(name: string): void; head(): string; setHead(target: string): void; /** Run `fn` holding the repository's ref lock (the world store's exclusive lock). */ withLock(fn: () => T): T; /** Every `refs/...` name with its sha, sorted by name. */ list(): Array<{ name: string; sha: string; }>; }