@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
22 lines • 937 B
TypeScript
import type { IndexConfig, RedisIndexConfig } from '../../cache/index/config.ts';
import type { BaseVFS } from '../../vfs/base.ts';
import type { Limit, MountBackend, MountMode, ReadSpec, WritePolicy } from '../../types.ts';
/** Placement settings; index, read and write fall back to the workspace defaults. */
export interface MountSpecOptions {
mode?: MountMode;
backend?: MountBackend;
mountpoint?: string;
commandLimits?: Record<string, Limit>;
/** Registry name or code loader used to rebuild the driver from a snapshot. */
vfsRef?: string | null;
index?: IndexConfig | RedisIndexConfig;
read?: ReadSpec;
/** Whether this mount's writes carry the version they were based on. */
write?: WritePolicy;
}
export declare class Mount {
readonly vfs: BaseVFS;
readonly options: MountSpecOptions;
constructor(vfs: BaseVFS, options?: MountSpecOptions);
}
//# sourceMappingURL=spec.d.ts.map