@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
14 lines • 889 B
TypeScript
import type { GDriveAccessor } from '../../accessor/gdrive.ts';
import type { FileStat, PathSpec } from '../../types.ts';
/**
* The digest Drive keeps for a file's content. Drive hashes the bytes of
* every file it stores, which are the bytes a read downloads. A Google Docs,
* Sheets or Slides file has no stored bytes, only a rendering, and a pinned
* revision reads older bytes than the file's own digest names, so both are
* read instead. A digest answered is recorded as the read it stands in for,
* with the token and head revision a read would record, so a snapshot pins
* them and a conditional write later in the line is conditioned on them.
* Mirrors Python's core/gdrive/checksum.py.
*/
export declare function checksum(accessor: GDriveAccessor, path: PathSpec, algorithm: string, entry?: FileStat | null): Promise<string | null>;
//# sourceMappingURL=checksum.d.ts.map