import type { DropboxAccessor } from '../../accessor/dropbox.ts'; import type { PathSpec, WalkEntry } from '../../types.ts'; import type { DeltaHook } from '../../watch/base.ts'; /** * One recursive `list_folder` feeding the generic listing differ. * * Reads the account directly, never through mirage's caches, as the DeltaHook * contract requires. * * Fingerprints on `content_hash`, Dropbox's own content digest, so an upload of * identical bytes is correctly reported as no change; `rev` is the fallback, * and it moves on any write. * * Dropbox also offers a cursor: the same endpoint returns one, and * `list_folder/continue` replays only what changed since. That is a faster * pull, not a more correct one, and it cannot replace this walk, because the * server may invalidate a cursor at any time and the only answer to that is a * full listing. When the fast path is added it belongs behind `pull`, with this * walk as its reset path. */ export declare class DropboxWalk { private readonly accessor; constructor(accessor: DropboxAccessor); walk(root: PathSpec): AsyncGenerator; } export declare function buildDeltaHook(accessor: DropboxAccessor): DeltaHook; //# sourceMappingURL=watch.d.ts.map