import type { InthOptions } from '../inth/runner.js'; /** Credential-free view of Inth's selected connection. */ export interface AuthState { credentialSource: string; /** When the session itself ends and needs a new login, if Inth knows. */ expiresAt?: number; /** True only when Inth can no longer refresh the session. */ isExpired: boolean; isLoggedIn: boolean; } /** * Read Inth's public local session status, never its credentials. * * Browser sessions report the expiry of a short-lived access token that Inth * refreshes on the next request, so that expiry never marks a session expired. * Inth clears a browser session itself when its refresh token stops working. * Agent connections can be renewed only until `assertionExpiresAt`. * @param options Working directory and cancellation for the Inth process. * @returns Whether a usable session exists, and when it ends if known. * @throws {CliError} When Inth fails for a reason other than being signed out. */ export declare const getAuthState: (options?: InthOptions) => Promise;