UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

12 lines • 998 B
import type { MongoDBAccessor } from '../../accessor/mongodb.ts'; import { PathSpec } from '../../types.ts'; export declare function applyElision(value: Record<string, unknown>, paths: Set<string>): Record<string, unknown>; export declare function elisionPaths(accessor: MongoDBAccessor, database: string, name: string): Set<string>; export declare function renderDoc(doc: Record<string, unknown>): string; export declare function readStream(accessor: MongoDBAccessor, path: PathSpec | string, options?: { batchSize?: number; }): AsyncIterableIterator<Uint8Array>; export declare const lastLines: (accessor: MongoDBAccessor, path: PathSpec, n: number) => Promise<Uint8Array<ArrayBufferLike> | null>; export declare const lineCount: (accessor: MongoDBAccessor, path: PathSpec) => Promise<number | null>; export declare const follow: (accessor: MongoDBAccessor, path: PathSpec, n: number) => Promise<AsyncIterableIterator<Uint8Array<ArrayBufferLike>> | null>; //# sourceMappingURL=stream.d.ts.map