/** * Z.ai / GLM OAuth flow (GLM Coding Plan ยท Sign in) * * Mirrors ZCode's desktop "Individual Plan" browser sign-in: an * authorization-code flow (no PKCE) against chat.z.ai, a JSON token exchange * that yields a short-lived OAuth access token, and a business-API sequence * that provisions a durable `id.secret` API key. The minted key is placed in * {@link OAuthCredentials.access}; `getOAuthApiKey` returns it verbatim as the * request bearer for the `zai` provider, so no dialect change is needed. */ import type { AfterExchangeHook } from "../hooks/types.js"; /** Replaces the short-lived OAuth token with the durable key minted by the Z.ai business APIs. */ export declare const zaiMintKeyHook: AfterExchangeHook;