import { Command } from "commander"; import type { DeviceAuthPrefill } from "../types/api.js"; interface DeviceLoginOptions { clientName?: string; profile: string; baseUrl?: string; open: boolean; json?: boolean; /** Optional sign-up pre-fill, passed through to /start as given — the server validates and drops invalid values. */ prefill?: DeviceAuthPrefill; } /** * Device-code login: get a link + short code, print it, poll until a human * approves it in a browser, then save the org API key it hands back. Shared * by `bland auth login --device` and its `bland signup` alias. Never prints * `approved.api_key` — only account metadata (org id, phone number, plan). * Exported for tests — it's the actual unit of work behind both commands. */ export declare function runDeviceLogin(opts: DeviceLoginOptions): Promise; export declare function registerAuthCommand(program: Command): void; /** * `bland signup` — a top-level alias for `bland auth login --device`, for * agents/bots that are onboarding for the first time and have no reason to * know the `auth` subcommand exists. */ export declare function registerSignupCommand(program: Command): void; export {}; //# sourceMappingURL=auth.d.ts.map