import type { GitHubAccessor } from '../../accessor/github.ts'; import type { PathSpec, WalkEntry } from '../../types.ts'; import type { DeltaHook } from '../../watch/base.ts'; /** * One recursive git tree fetch feeding the generic listing differ. * * `GET /git/trees/{ref}?recursive=1` returns every path in the repository with * its object sha, so a pull is one request whatever the repository's shape, and * the fingerprint is the sha itself. That is the strongest fingerprint any * mirage backend has: git is content-addressed, so identical bytes have an * identical sha and a rewrite that changes nothing correctly reports nothing. * * A mount is pinned to one ref, so what this detects is that ref moving. * Nothing is reported while the branch sits still, however much is pushed * elsewhere in the repository. */ export declare class GitHubWalk { private readonly accessor; constructor(accessor: GitHubAccessor); walk(root: PathSpec): AsyncGenerator; } export declare function buildDeltaHook(accessor: GitHubAccessor): DeltaHook; //# sourceMappingURL=watch.d.ts.map