UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

10 lines • 571 B
import type { RAMAccessor } from '../../accessor/ram.ts'; import { type PathSpec } from '../../types.ts'; /** * Set one key's length, padding with NULs or cutting it short. A live pipe * has no length to set: EINVAL, as ftruncate(2) answers for one (GNU: * `truncate -s 0 >(cat)` is "Invalid argument"), and for a length that is not * a whole, non-negative number of bytes. Mirrors Python's truncate. */ export declare function truncate(accessor: RAMAccessor, path: PathSpec, length: number, noCreate?: boolean): Promise<void>; //# sourceMappingURL=truncate.d.ts.map