@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
13 lines • 743 B
TypeScript
import { FileStat } from '../../types.ts';
import type { PathSpec } from '../../types.ts';
import type { RedisAccessor } from '../../accessor/redis.ts';
import type { RedisStoreLike } from '../../vfs/redis/store.ts';
/**
* What `stat` answers for the normalized key `p` the store holds. Mirrors
* Python's `key_stat`.
*/
export declare function keyStat(store: RedisStoreLike, p: string, isDir: boolean): Promise<FileStat>;
/** `keyStat` for many keys, in one pipeline. Mirrors Python's `key_stats`. */
export declare function keyStats(store: RedisStoreLike, keys: readonly [string, boolean][]): Promise<FileStat[]>;
export declare function stat(accessor: RedisAccessor, path: PathSpec): Promise<FileStat>;
//# sourceMappingURL=stat.d.ts.map