import type { H3Event } from "h3"; export interface McpOrgOption { id: string; name: string; domain: string | null; } export interface McpOrgChoices { organizations: McpOrgOption[]; defaultOrganizationId: string | undefined; } /** * The organizations an MCP connection (OAuth consent or device approval) can * be bound to, and the one to preselect. For an account with no memberships, * this resolves (and may create) its domain or default org the same way any * other page load would, so the connection isn't scoped to no org for its * whole life. * * `requestedOrganizationId`: `undefined` means no explicit pick (use the * caller's stored/session org), `null` means the OAuth caller explicitly * asked for personal scope, and a string is an explicit org pick to resolve * membership for. */ export declare function resolveMcpOrgChoices(event: H3Event, session: { email: string; orgId?: string | null; }, requestedOrganizationId?: string | null): Promise;