@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
18 lines • 937 B
TypeScript
import type { DropboxAccessor } from '../../accessor/dropbox.ts';
import type { PathSpec } from '../../types.ts';
/**
* The files under `under` Dropbox search returns. Hits are
* kept inside each scope on `path_lower` (Dropbox paths are case-insensitive)
* and keyed from `path_display`. Null whenever the answer may miss a match:
* an API failure, the 10,000-match ceiling, or no hit at all, since Dropbox
* indexes a write some time after it lands.
*
* Dropbox searches the text it extracted, not the bytes grep reads, so the
* answer can leave out a file that holds the text: an office file, PDF or
* archive, the end of a large file, a word Dropbox splits differently
* (`foo.bar`), or a recent write.
*
* Mirrors Python's `files_containing`.
*/
export declare function filesContaining(accessor: DropboxAccessor, text: string, under: readonly PathSpec[]): Promise<PathSpec[] | null>;
//# sourceMappingURL=search.d.ts.map