@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
15 lines • 750 B
TypeScript
import type { MongoDriver } from '../core/mongodb/_driver.ts';
import type { resolveMongoDBConfig } from '../vfs/mongodb/config.ts';
import { Accessor } from './base.ts';
import { ResponseCache } from './responses.ts';
export declare class MongoDBAccessor extends Accessor {
readonly driver: MongoDriver;
readonly config: ReturnType<typeof resolveMongoDBConfig>;
/** The database and collection names a listing or an existence check reads. */
readonly listings: ResponseCache<string, string[]>;
constructor(driver: MongoDriver, config: ReturnType<typeof resolveMongoDBConfig>, options?: {
listingCacheTtlMs?: number;
});
caches(): readonly ResponseCache<unknown, unknown>[];
}
//# sourceMappingURL=mongodb.d.ts.map