@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
16 lines • 969 B
TypeScript
import type { GDriveAccessor } from '../../accessor/gdrive.ts';
import { type FileStat, type PathSpec } from '../../types.ts';
/**
* The files under `under` Drive full-text search names. The folder is walked
* by id and Drive is asked which files in the walked folders hold the text.
* Null when a listing or the search fails or times out, nothing is found,
* Drive skips a corpus, or the scope is not a folder.
*
* Drive searches the text it extracted, not the bytes grep reads, so the
* answer can leave out a file that holds the text: a Docs, Sheets or Slides
* file (its JSON keys and ids), an office file, PDF or archive, the end of a
* large file, a word Drive splits differently (`foo.bar`), or a recent write.
* Mirrors Python's `files_containing`.
*/
export declare function filesContaining(accessor: GDriveAccessor, text: string, under: PathSpec, entry: FileStat | null | undefined): Promise<PathSpec[] | null>;
//# sourceMappingURL=search.d.ts.map