/** * `nexus-account` setup wizard section: optionally sign in to a Cleo Nexus * account. * * Runs the SAME engine as `cleo login nexus`: device enrolment by default, * or {@link loginToNexus} with `CLEO_NEXUS_DEVICE=0` (both drive the shared * RFC 8628 device-code runner); only the I/O differs: the verification URL * and user code go through {@link WizardIO.info}. * * - Optional: skipping it leaves CLEO fully functional offline. * - Idempotent: `isConfigured()` is `true` once a device credential (or, * with `CLEO_NEXUS_DEVICE=0`, a session) is stored for the default API * origin, so a re-run skips it unless `--reset`. * - Non-interactive runs skip it: the device-code grant needs a person to * approve the code in a browser. * * @task T12712 * @epic T12322 */ import { loginToNexus } from '../../cloud/nexus-auth.js'; import type { WizardSectionRunner } from '../wizard.js'; /** Injectable dependencies (tests pass a stub login). */ export interface NexusAccountSectionDeps { /** Login engine; defaults to device enrolment, or {@link loginToNexus} with `CLEO_NEXUS_DEVICE=0`. */ login?: typeof loginToNexus; } /** * Build the `nexus-account` section runner. * * @param deps - Optional login override. * @returns A {@link WizardSectionRunner}. */ export declare function createNexusAccountSection(deps?: NexusAccountSectionDeps): WizardSectionRunner; //# sourceMappingURL=nexus-account.d.ts.map