export type BrowserLoginResult = { token: string; }; /** A human-readable default token nickname, e.g. "HELIX CLI (my-laptop)". */ export declare function defaultClientTokenName(): string; /** * Derive the website URL from the API URL: `https://api.helixgame.com` → * `https://helixgame.com`. For local dev (e.g. backend on localhost) the host * isn't an `api.` subdomain of the site, so pass `--web-url` explicitly. */ export declare function deriveWebUrl(apiUrl: string): string; /** * Run the loopback login flow. Resolves with the captured client token, or * rejects on timeout / state mismatch / a site-reported error. */ export declare function browserLogin(opts: { webUrl: string; name: string; openBrowser?: boolean; timeoutMs?: number; onUrl?: (url: string) => void; }): Promise;