/** * Cloud onboarding flow for Eliza Cloud integration. * * Handles availability check → browser-based auth → agent provisioning * during `runFirstTimeSetup()`. Extracted to keep `eliza.ts` manageable. * * @module cloud-onboarding */ /** Lazy-loaded @clack/prompts module type (matches eliza.ts pattern). */ type ClackModule = typeof import("@clack/prompts"); /** Style preset from onboarding-presets.ts. */ interface StylePreset { catchphrase: string; hint?: string; bio?: string[]; system?: string; style?: { all?: string[]; chat?: string[]; post?: string[]; }; adjectives?: string[]; topics?: string[]; postExamples?: string[]; messageExamples?: Array>; } /** Result of a successful cloud onboarding flow. */ export interface CloudOnboardingResult { apiKey: string; agentId: string | undefined; baseUrl: string; bridgeUrl?: string; } /** * Quick pre-flight check: is Eliza Cloud accepting new agents? * Returns null if available, or an error message string if not. */ export declare function checkCloudAvailability(baseUrl: string): Promise; /** * Run the full cloud onboarding flow: * 1. Check availability * 2. Authenticate via browser * 3. Create + provision agent * * Returns the result or null if the user cancels / an error occurs. * On failure, the caller should fall back to local mode. */ export declare function runCloudOnboarding(clack: ClackModule, agentName: string, preset?: StylePreset, baseUrl?: string): Promise; export {}; //# sourceMappingURL=cloud-onboarding.d.ts.map