/** * BigModel/Z.AI monitor-usage HTTP client (platform usage statistics). * * The monitor family lives on the same hosts and uses the same auth as the * quota endpoint (`client.ts`): the active provider's apiKey over the host * derived from its baseURL. Every endpoint answers the `{code, msg, success, * data}` envelope; classification (auth / rate-limit / empty) happens in the * consumer, `src/quota/platform-usage.ts`. */ /** Monitor endpoints this client serves. */ export type MonitorEndpoint = "/api/monitor/credit-usage/activity" | "/api/monitor/credit-usage/usage-detail" | "/api/monitor/usage/model-usage" | "/api/monitor/usage/tool-usage"; /** Raw response from a monitor endpoint, pre-classification. */ export interface MonitorResponse { status: number; json: unknown; text: string; } /** * Fetch one monitor endpoint for the active account. * * @throws if the active provider has no apiKey in config, or on network/timeout * errors. The caller maps these to `unavailable`. */ export declare function fetchMonitorResponse(endpoint: MonitorEndpoint, search: Record, fetchImpl?: typeof globalThis.fetch): Promise; //# sourceMappingURL=monitor-client.d.ts.map