import { type Database } from "./database.js"; /** * The model account settings of a Personal workspace belong to its owner * (migration 1233): the owner, acting as themselves, may change what the * organization has not locked, as a shared workspace's administrators can. * * The database admits the owner's write only in a transaction that declared * the owner here. Declare it only after the API verified the owner acting as * themselves (`workspaceSettingsAuthorized`): the owner's membership row alone * admits whoever names the owner's subject, a delegated bearer included. */ export type PersonalWorkspaceOwnerSettingsInput = { /** The request verified the Personal workspace's owner acting as themselves. */ personalWorkspaceOwnerVerified?: boolean | undefined; }; /** Declare, for this transaction, that `subjectId` is the verified owner (see above). */ export declare function declarePersonalWorkspaceOwnerSettings(tx: Database, input: { subjectId: string; } & PersonalWorkspaceOwnerSettingsInput): Promise; /** * Whether the subject is this Personal workspace's owner with their owner row * (1231), and the request verified them. False for anyone else, for a * Personal workspace without an owner row (local and external-user ones) and * for any workspace that isn't Personal. */ export declare function personalWorkspaceOwnerMayChangeSettings(tx: Database, input: { accountId: string; workspaceId: string; subjectId: string; } & PersonalWorkspaceOwnerSettingsInput): Promise;