UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

10 lines • 558 B
import type { BoxAccessor } from '../../accessor/box.ts'; import type { PathSpec } from '../../types.ts'; import type { Handed } from '../../vfs/types.ts'; /** * Resize a file by rewriting it whole. Emptying reads nothing and carries the * agent's version; a resize holds the sha1 of the bytes it downloaded, or none * for a file without one. Mirrors Python's `truncate`. */ export declare function truncate(accessor: BoxAccessor, path: PathSpec, length: number, noCreate?: boolean, handed?: Handed): Promise<void>; //# sourceMappingURL=truncate.d.ts.map