import React from 'react';
import { FieldWrapperProps } from '@parlor/components/select-v4';
export type ICreatedBoxChildrenParams<T extends Record<string, any>> = {
    setInputValue(value: string): void;
    setIsCreating(): void;
    setOnCanceled?: React.Dispatch<() => void>;
    setOnCreated: React.Dispatch<(newValue: T) => void>;
    setOnError: React.Dispatch<(err: Error) => void>;
};
export type ICreatedBox<T extends Record<string, any>> = {
    children: (params: ICreatedBoxChildrenParams<T>) => JSX.Element;
    isTopic?: boolean;
    label?: string;
    onClose?: () => void;
    onCreate: (name: string) => Promise<T>;
    placeholder?: string;
    size?: FieldWrapperProps['size'];
    variation?: FieldWrapperProps['variation'];
};
export declare const CreatingSelectorBoxWrapper: <T extends Record<string, any> = Record<string, any>>({ label, placeholder, isTopic, onCreate, children, size, variation, }: ICreatedBox<T>) => JSX.Element;
