@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
11 lines • 656 B
TypeScript
import type { BoxAccessor } from '../../accessor/box.ts';
import type { FileStat, PathSpec } from '../../types.ts';
/**
* The sha1 Box keeps for a file's content, asked live: a listing row's sha1
* can be older than the bytes a read downloads, so the file's own record is
* asked. Box keeps no other digest. A digest answered is recorded as the read
* it stands in for, with the token a whole read of those bytes would record.
* Mirrors Python's core/box/checksum.py.
*/
export declare function checksum(accessor: BoxAccessor, path: PathSpec, algorithm: string, entry?: FileStat | null): Promise<string | null>;
//# sourceMappingURL=checksum.d.ts.map