@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
10 lines • 638 B
TypeScript
import { type TokenManager } from '../google/client.ts';
/** The mailbox's history id now, where a delta starts from. Mirrors Python's `current_history_id`. */
export declare function currentHistoryId(tokenManager: TokenManager): Promise<string>;
/**
* The mailbox's history records after `start`, and the history id they reach.
* Gmail answers 404 for a start older than the history it keeps, which
* rejects as any failed call does. Mirrors Python's `list_history`.
*/
export declare function listHistory(tokenManager: TokenManager, start: string): Promise<[Record<string, unknown>[], string]>;
//# sourceMappingURL=history.d.ts.map