UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

18 lines • 1.04 kB
import type { GCalAccessor } from '../../accessor/gcal.ts'; import type { PathSpec } from '../../types.ts'; /** * The event files under `under` whose event holds every word of `text` where * Calendar's search finds it or where the listing kept it. * * Calendar searches an event's summary, description, location and people by * word, so each word is asked on its own over the walked buckets' time * window, and an event is read when each word is either found there or held * by the text the listing kept (`unsearchedText`): the event's other fields, * and the words of those three the search may split otherwise. The text goes * through `recordQueries` for its escapes. Null when the text cannot be * searched, a scope lies inside a bucket, a search fails or runs past * `MAX_PAGES` pages, or nothing is found. Mirrors Python's * `files_containing`. */ export declare function filesContaining(accessor: GCalAccessor, text: string, under: readonly PathSpec[]): Promise<PathSpec[] | null>; //# sourceMappingURL=search.d.ts.map