import { type Database } from "./database.js"; /** How a new organization owner said they want to use Opengeni at signup. */ export declare const ORGANIZATION_SIGNUP_USE_CASES: readonly ["everyday", "embed", "cloud"]; export type OrganizationSignupUseCase = (typeof ORGANIZATION_SIGNUP_USE_CASES)[number]; /** * Record one person's signup answer for one organization (migration 0595; * `everyday` since 1006). * Call only for the authenticated managed human (`user:` subject) after * authorizing their membership in `organizationId`. The first answer wins: a * repeated or replayed call returns the stored choice unchanged. */ export declare function recordOrganizationSignupUseCase(db: Database, input: { organizationId: string; subjectId: string; useCase: OrganizationSignupUseCase; }): Promise; /** * Keep one person's current signup answer for one organization (migration * 1007): at organization setup, and again when they go Back and choose * another answer. The new-chat page follows it on every device; the first * answer stays in `organization_signup_use_cases` for analytics. Call only for * the authenticated managed human after proving their active membership in * `organizationId`. */ export declare function setOrganizationSignupUseCase(db: Database, input: { organizationId: string; subjectId: string; useCase: OrganizationSignupUseCase; }): Promise; /** * The person's current signup answer for this organization, or null when the * server has none (an organization set up before 1007, or without an answer). */ export declare function readOrganizationSignupUseCase(db: Database, input: { organizationId: string; subjectId: string; }): Promise;