@struktoai/mirage-core
Version:
A Unified Virtual Filesystem For AI Agents
24 lines • 1.04 kB
TypeScript
import { type TokenManager } from '../google/client.ts';
/**
* Every Docs request a Google backend makes, as one object. A core op
* reaches Docs only through `accessor.docs`. Mirrors Python's `DocsApi`.
*/
export interface DocsApi {
readDoc(docId: string): Promise<Uint8Array>;
}
/** The live `DocsApi`: one token manager, one wire call per method. */
export declare class DocsClient implements DocsApi {
readonly tokenManager: TokenManager;
constructor(tokenManager: TokenManager);
/**
* Fetch full document JSON, every tab included.
*
* `documents.get` fills the singleton fields from the first tab and leaves
* `tabs` empty unless asked otherwise, so without `includeTabsContent` a
* multi-tab document renders as tab 1 and the rest are absent rather than
* truncated. Asking for it moves the content under `tabs[]` and leaves
* `body` empty, which is the shape the VFS prompt documents.
*/
readDoc(docId: string): Promise<Uint8Array>;
}
//# sourceMappingURL=api.d.ts.map