import * as react_jsx_runtime from 'react/jsx-runtime';
import { OrganizationInfo } from '../api/endpoint.cjs';
import { WidgetRootDomProps } from './utils.cjs';
import '@tanstack/react-query';
import '../api/widgets-api-client.cjs';
import './elements.cjs';
import 'react';
import '@radix-ui/themes';
import '@radix-ui/themes/props';
import '../dialog-CGXwsXVe.cjs';
import '@radix-ui/themes/components/dialog';
import '../alert-dialog-BMbVcJfZ.cjs';
import '@radix-ui/themes/components/alert-dialog';
import '../dropdown-menu-BQ5LtvdR.cjs';
import '@radix-ui/themes/components/dropdown-menu';
import '../select-KR89Qnvm.cjs';
import '@radix-ui/themes/components/select';

type OrganizationSwitcherVariant = "ghost" | "outline";
interface OrganizationSwitcherPassthroughProps extends WidgetRootDomProps {
    switchToOrganization: ({ organizationId, }: {
        organizationId: string;
    }) => void | Promise<void>;
    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<OrganizationSwitcherProps>;
interface OrganizationSwitcherLoadingProps extends WidgetRootDomProps {
    variant?: OrganizationSwitcherVariant;
}
declare const OrganizationSwitcherLoading: React.FC<OrganizationSwitcherLoadingProps>;
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 };
