/** * Translate the MCP toolset's documented search-query vocabulary into Drive * REST v3 `q` syntax. * * The `search_files` page documents `query_term operator values` clauses with * three terms v3 spells differently: `title` is v3's `name`, and the * equality-shaped `parentId = 'x'` / `owner = 'me'` are v3's containment * clauses `'x' in parents` / `'me' in owners` (their `!=` forms negate with * `not`). Everything else the page documents (`fullText`, `mimeType`, the * timestamp terms, `sharedWithMe`, `and`/`or`/`not`, parentheses) is already * v3 vocabulary and passes through, as does anything undocumented (v3 rejects * what it rejects; inventing repairs would mask the error). * * Quoted string values are never rewritten: the input is tokenized before any * mapping, so a value like `'my title = x'` survives verbatim, including * `\'` escapes. * * @see https://developers.google.com/workspace/drive/api/reference/mcp/tools_list/search_files * @see https://developers.google.com/workspace/drive/api/guides/search-files */ type Token = { kind: 'value' | 'word' | 'op' | 'paren'; text: string; }; /** Split a query into quoted values, words, comparison operators, and parentheses. */ export declare function tokenize(query: string): Token[]; /** Translate a documented MCP query into v3 `q` syntax (see module doc). */ export declare function translateQuery(query: string): string; export {}; //# sourceMappingURL=query.d.ts.map