UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

30 lines • 1.4 kB
import { Mem0Accessor } from '../../accessor/mem0.ts'; import { type ByteSource } from '../../io/types.ts'; import type { FileStat, PathSpec, SearchQuery } from '../../types.ts'; import { type DirListing } from '../../types.ts'; import { BaseVFS } from '../base.ts'; import type { RedactedSchema } from '../secrets.ts'; import type { ConfigState, Handed } from '../types.ts'; import { Mem0Config } from './config.ts'; export declare const VFS_MD = "```text\n{prefix}\n <memory-id>.json\n```"; export declare class Mem0VFS extends BaseVFS { readonly handed: { readonly read: readonly ["entry"]; readonly stat: readonly ["entry"]; }; readonly name: string; readonly cachesReads: boolean; readonly sizesAlwaysKnown: boolean; readonly supportsSnapshot: boolean; vfsMd: string; readonly accessor: Mem0Accessor; private readonly config; constructor(config: Mem0Config); readdir(path: PathSpec, handed?: Handed): Promise<FileStat[] | DirListing>; read(path: PathSpec, handed?: Handed): Promise<ByteSource>; stat(path: PathSpec, handed?: Handed): Promise<FileStat>; search(path: PathSpec, query: SearchQuery): Promise<[string, string][] | null>; searchMany(paths: PathSpec[], query: SearchQuery): Promise<[string, string][] | null>; getState(): ConfigState<RedactedSchema<typeof Mem0Config>>; } //# sourceMappingURL=mem0.d.ts.map