UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

13 lines • 786 B
import type { RAMAccessor } from '../../accessor/ram.ts'; import { FileStat, type PathSpec } from '../../types.ts'; /** The keys of a directory's children, sorted. Mirrors Python's `child_keys`. */ export declare function childKeys(accessor: RAMAccessor, path: PathSpec): Promise<string[]>; export declare function readdir(accessor: RAMAccessor, path: PathSpec): Promise<FileStat[]>; /** * Every key under a directory, each as `stat` answers it; null when `path` is * no directory, or when a key's parent is none (a file restored without its * folder), so the walk's readdir and stat report what is there. Mirrors * Python's `tree`. */ export declare function tree(accessor: RAMAccessor, path: PathSpec): Promise<Map<string, FileStat> | null>; //# sourceMappingURL=readdir.d.ts.map