UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

13 lines • 802 B
import { type FileStat, type PathSpec } from '../../types.ts'; import { type SlugTree } from './tree.ts'; export declare function validateQuery(query: string, topK: number): void; /** Every file a search scope covers, keyed by its slug. */ export declare function targetEntries<A>(tree: SlugTree<A>, accessor: A, paths: readonly PathSpec[]): Promise<Map<string, FileStat>>; /** * The paths a batch search covers and the prefix its hits print under. A * scope at the mount root covers the whole collection, which the backend * searches unfiltered, so it resolves to no paths at all. Globs expand * against one load of the tree. */ export declare function searchScope<A>(tree: SlugTree<A>, accessor: A, paths: readonly PathSpec[]): Promise<[PathSpec[], string]>; //# sourceMappingURL=search.d.ts.map