/// <reference types="react" />
import { ModelWithDisplayName } from '@parlor/components/select';
export type CreateUserFormValues = {
    account?: ModelWithDisplayName;
    email?: string;
    firstName?: string;
    lastName?: string;
};
export type CreateUserModalProps = {
    onCancel(): void;
    onCreateAccount: (account: {
        displayName: string;
    }) => Promise<ModelWithDisplayName>;
    onError?: (error: Error) => void;
    onSubmit: (user: CreateUserFormValues) => Promise<unknown>;
    validateAccountName: (displayName: string) => Promise<boolean>;
    validateEmail(displayName: string): Promise<boolean> | boolean;
};
export declare const CreateUserModal: ({ onCancel, validateEmail, onSubmit, onError, onCreateAccount, validateAccountName, }: CreateUserModalProps) => JSX.Element;
