@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
17 lines • 857 B
TypeScript
import type { RAMAccessor } from '../../accessor/ram.ts';
import { FileStat, type PathSpec } from '../../types.ts';
/**
* What `stat` answers for the normalized key `key`, null when nothing is
* there. Mirrors Python's `key_stat`.
*/
export declare function keyStat(accessor: RAMAccessor, key: string): FileStat | null;
/**
* Stat a /dev path: a FIFO for a live descriptor, a char device for an
* active synthetic name, otherwise the ordinary RAM stat (a recreated real
* file, or a dir). Neither has rendered content, so the size is null; a
* device's identity is the [major, minor] under DEVICE_NUMBERS_KEY. Both
* carry the stored mode, owner and times; a FIFO without a mode is
* rw-------. Mirrors Python's dev stat.
*/
export declare function stat(accessor: RAMAccessor, path: PathSpec): Promise<FileStat>;
//# sourceMappingURL=stat.d.ts.map