UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

13 lines • 696 B
import type { Accessor } from '../../accessor/base.ts'; import { type ExistsFn, type ObjectStoreDriver, type PairFn } from './driver.ts'; /** * Build file-or-prefix relocation over one driver. * * A single object moves with the driver's native file move. A directory * owns no object of its own, so it moves as a prefix walk; a source that * is neither is ENOENT rather than the raw store error. The driver must * carry a native move — a store without one leaves rename unwired, * which the dispatcher surfaces as ENOTSUP. */ export declare function makeRename<A extends Accessor, C>(driver: ObjectStoreDriver<A, C>, exists: ExistsFn<A>): PairFn<A>; //# sourceMappingURL=rename.d.ts.map