UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

12 lines • 767 B
import type { Accessor } from '../../accessor/base.ts'; import { type PathSpec } from '../../types.ts'; import type { ObjectStoreDriver, StatFn } from './driver.ts'; /** * Whether any key sits under `pfx`; a refused probe is EACCES. A grant * without ListBucket refuses the probe as well as the key, so the refusal is * named for the path the caller reports. Mirrors Python's `proves_directory`. */ export declare function provesDirectory<A extends Accessor, C>(driver: ObjectStoreDriver<A, C>, conn: C, pfx: string, named: PathSpec): Promise<boolean>; /** Build the stat ladder over one driver: the object, then the prefix. */ export declare function makeStat<A extends Accessor, C>(driver: ObjectStoreDriver<A, C>): StatFn<A>; //# sourceMappingURL=stat.d.ts.map