import * as react_jsx_runtime from 'react/jsx-runtime'; import { OrganizationInfo } from '../api/endpoint.js'; import { WidgetRootDomProps } from './utils.js'; import '@tanstack/react-query'; import '../api/widgets-api-client.js'; import './elements.js'; import 'react'; import '@radix-ui/themes'; import '@radix-ui/themes/props'; import '../dialog-CGXwsXVe.js'; import '@radix-ui/themes/components/dialog'; import '../alert-dialog-BMbVcJfZ.js'; import '@radix-ui/themes/components/alert-dialog'; import '../dropdown-menu-BQ5LtvdR.js'; import '@radix-ui/themes/components/dropdown-menu'; import '../select-KR89Qnvm.js'; import '@radix-ui/themes/components/select'; type OrganizationSwitcherVariant = "ghost" | "outline"; interface OrganizationSwitcherPassthroughProps extends WidgetRootDomProps { switchToOrganization: ({ organizationId, }: { organizationId: string; }) => void | Promise; variant?: OrganizationSwitcherVariant; organizationLabel?: string | null; children?: React.ReactNode; /** * Choose where to truncate organization name in the trigger and dropdown * items. * * - `right`: Truncate the right side of the organization name * - `middle`: Truncate the middle of the organization name, trying to keep * words whole */ truncateBehavior?: "right" | "middle"; } interface OrganizationSwitcherProps extends OrganizationSwitcherPassthroughProps { organizations: OrganizationInfo[]; } declare const OrganizationSwitcher: React.FC; interface OrganizationSwitcherLoadingProps extends WidgetRootDomProps { variant?: OrganizationSwitcherVariant; } declare const OrganizationSwitcherLoading: React.FC; interface OrganizationSwitcherErrorProps extends WidgetRootDomProps { error: unknown; variant?: OrganizationSwitcherVariant; } declare function OrganizationSwitcherError({ error, variant, ...domProps }: OrganizationSwitcherErrorProps): react_jsx_runtime.JSX.Element; export { OrganizationSwitcher, OrganizationSwitcherError, type OrganizationSwitcherErrorProps, OrganizationSwitcherLoading, type OrganizationSwitcherLoadingProps, type OrganizationSwitcherPassthroughProps, type OrganizationSwitcherProps };