/** The first onboarding question: embed Opengeni in a product, or use it directly. */ export type OnboardingUseCase = "embed" | "cloud"; /** The choice survives a reload of this tab until the organization exists. */ export declare function storedOnboardingUseCase(): OnboardingUseCase | null; export declare function storeOnboardingUseCase(choice: OnboardingUseCase | null): void; /** Name of the shared workspace "Let Opengeni implement it" creates. */ export declare const DEVELOPER_SETUP_WORKSPACE_NAME = "Opengeni setup"; /** Secret item in the person's Only-me vault that holds the setup key. */ export declare const DEVELOPER_SETUP_KEY_ITEM_NAME = "Opengeni setup API key"; /** The reference the setup chat uses wherever it needs the key. */ export declare const DEVELOPER_SETUP_KEY_REFERENCE = "{{secret:Opengeni setup API key}}"; /** * How long the signup key lasts. Longer than the preset's 24-hour default so a * new owner has time to build and test the integration before replacing it. */ export declare const DEVELOPER_SETUP_KEY_LIFETIME_DAYS = 30; /** The organization key onboarding creates: full access, valid for 30 days, so setup needs no UI. */ export declare function developerSetupKeyRequest(now?: Date): { readonly name: "Setup (full access)"; readonly description: "Created at signup so an agent can set up Opengeni in your product end to end."; readonly access: "full"; readonly expiresAt: string; }; /** The visible first message of the setup chat. */ export declare const DEVELOPER_SETUP_INITIAL_MESSAGE = "I want to add AI agents to my product. Help me set it up."; export type DeveloperSetupFacts = { /** The deployment's API origin, e.g. https://app.opengeni.ai. */ apiBaseUrl: string; organizationId: string; organizationName?: string | undefined; }; /** Where the person stores the key for their own coding agent's integration. */ export declare const CODING_AGENT_KEY_VARIABLE = "OPENGENI_API_KEY"; /** * The prompt a person pastes into their own coding agent (Claude Code, Codex, * Cursor, ChatGPT). It never contains the key: the person copies the key in a * separate step into their server-only env, and the prompt names that variable. */ export declare function codingAgentSetupPrompt(facts: DeveloperSetupFacts): string; /** * The model-visible onboarding context attached to the setup chat's first * message. It names where the key is, never the key itself. */ export declare function developerSetupModelContext(facts: DeveloperSetupFacts & { keySaved: boolean; }): string; /** The deployment's public API origin, for prompts and agent context. */ export declare function deploymentApiOrigin(apiBaseUrl: string, location: Pick): string; /** "$10" for whole amounts, "$7.25" otherwise. */ export declare function formatCreditAmount(amountMicros: number, currency: string): string;