/** * Auth Utilities * * Shared utilities for authentication-related CLI operations. */ import type { AuthMethod } from "./login.js"; import type { ParsedArgs } from "../shared/types.js"; /** * Parse login method from CLI arguments */ export declare function parseLoginMethod(args: ParsedArgs): AuthMethod | undefined; /** Whether `--provider` was passed, regardless of value. */ export declare function hasProviderFlag(args: ParsedArgs): boolean; /** * Report that `--provider` was removed, and return whether it was passed. * * The flag stored an API key that no code path ever read, so it configured * nothing while reporting success. Provider credentials come from the * environment. Failing loudly beats silently running a platform login, * which is what ignoring the flag would do. */ export declare function reportRemovedProviderFlag(command: "login" | "logout", args: ParsedArgs): Promise; //# sourceMappingURL=utils.d.ts.map