import type { ConnectionMetadata } from "@opengeni/sdk"; import type { AccountOriginWorkspace } from "./connection-account-rows.js"; import type { ConnectedAccountGroup, ConnectionAccountChoices } from "./session-connection-accounts.js"; export declare function connectionAccountLabel(account: ConnectionMetadata, fallback: string): string; export type ConnectionAccountPickerProps = { groups: ConnectedAccountGroup[]; choices: ConnectionAccountChoices; onChoose: (serverId: string, connectionIds: string[]) => void; disabled?: boolean | undefined; presentation?: "menu" | "dialog" | undefined; emptySelectionHint?: string | undefined; /** The workspace being viewed, to name where another workspace's account came from. * Defaults to the console's current workspace. */ workspaceId?: string | undefined; /** The workspaces the person can see. Defaults to the console's list. */ workspaces?: readonly AccountOriginWorkspace[] | undefined; }; export type ConnectionAccountControls = ConnectionAccountPickerProps & { loading?: boolean | undefined; error?: string | null | undefined; accessDenied?: boolean | undefined; onRefresh?: (() => void) | undefined; }; export declare function ConnectionAccountPicker(props: ConnectionAccountPickerProps): import("react").JSX.Element[];