import { type XaiAuthStoreDeps, type XaiTokenBundle } from './auth-store.js'; import { type OAuthHttpDeps } from './oauth-http.js'; export type { FetchFn, OAuthHttpDeps, XaiOidcDiscovery } from './oauth-http.js'; export { clearOidcCache, discoverXaiOidc, discoverXaiOidcCached, tokenResponseToBundle } from './oauth-http.js'; export { startDeviceCodeFlow, pollDeviceCodeToken, type DeviceCodeStart, type DevicePollResult, } from './oauth-device.js'; export { buildPkceAuthorizeUrl, codeChallengeS256, exchangeAuthorizationCode, generateCodeVerifier, generateOAuthState, type PkceAuthorizeParams, } from './oauth-pkce.js'; export declare function refreshXaiTokens(refreshToken: string, deps?: OAuthHttpDeps & { store?: XaiAuthStoreDeps; persist?: boolean; }): Promise; export declare function ensureFreshAccessToken(deps?: OAuthHttpDeps & { store?: XaiAuthStoreDeps; skewSeconds?: number; }): Promise;