export interface TokenResult { id_token: string; user_id: string; } export declare function getValidIdToken(): Promise; /** * Issue #560: humanize a network-level failure of the token refresh. Authored * locally (not reused from client.ts's classifyNetworkError) to avoid a * token<->client import cycle and because the failing host is the sign-in * service, not the Graphit API. NEVER return the raw error message (undici's * "fetch failed"); always point the user at `graphit auth login`. */ export declare function refreshNetworkError(err: unknown): string;