UNPKG

@struktoai/mirage-core

Version:

A Unified Virtual Filesystem For AI Agents

27 lines • 1.26 kB
import { type TokenManager } from '../google/client.ts'; /** * Every Sheets read a Google backend makes, as one object. A core op reaches * Sheets only through `accessor.sheets`. Mirrors Python's `SheetsApi`. */ export interface SheetsApi { readSpreadsheet(spreadsheetId: string): Promise<Uint8Array>; readValues(spreadsheetId: string, range: string): Promise<Uint8Array>; } /** The live `SheetsApi`: one token manager, one wire call per method. */ export declare class SheetsClient implements SheetsApi { readonly tokenManager: TokenManager; constructor(tokenManager: TokenManager); /** * Fetch spreadsheet JSON, cell values included and formats left out. * * `spreadsheets.get` returns no grid data unless asked, so without * `includeGridData` the rendered `.gsheet.json` is tab metadata and nothing * an agent can read a cell from. The `fields` mask then keeps the structure * the VFS prompt documents; formatting stays reachable through * `gws sheets spreadsheets get`. */ readSpreadsheet(spreadsheetId: string): Promise<Uint8Array>; /** Read cell values via the Values API. */ readValues(spreadsheetId: string, range: string): Promise<Uint8Array>; } //# sourceMappingURL=api.d.ts.map