/** * configure command — set up OpenSIP Cloud API key. * * Prompts via `readline` (Ink can't own a prompt loop without raw mode); * banners and result lines route through Ink via the `configure-done` * `CommandResult`. No `console.log` and no raw ANSI escapes here. * * The actual config I/O (read/write `~/.opensip-cli/config.yml`, * resolve the API key from flag → env → config) lives in * `@opensip-cli/config` (relocated there in ADR-0023) so the * pre-action hook and this command both read it through the config * layer. This file is the prompt+UX wrapper around those primitives. * Audit 2026-05-23 M3. */ import type { ConfigureDoneResult } from '@opensip-cli/contracts'; export { resolveApiKey } from '@opensip-cli/config'; /** * Test a freshly-entered key against the cloud entitlement endpoint — the * configure flow's documented "test the key" step (audit P2-2). Prints the * outcome; best-effort, never throws (checkEntitlement returns `entitled: * false` on an invalid key, an unreachable endpoint, or a non-entitled plan). * The key is saved regardless, so offline setup still works. Returns whether * the key verified as entitled. */ export declare function verifyConfiguredKey(key: string): Promise; /** * Run the interactive configure flow. Returns a `ConfigureDoneResult`; * the caller renders it through Ink, including any "current key" hint * the user saw at the prompt. */ export declare function executeConfigure(): Promise; //# sourceMappingURL=configure.d.ts.map