import { Atom } from '@cn-ui/use';
import { Component } from 'solid-js';
import { FormFieldOptions } from './FormFieldOptions';
export declare type FormWrapComponent<T, D> = Component<{
    value: Atom<D>;
    options: T;
}>;
export declare type FormTemplate = FormFieldOptions.Select | FormFieldOptions.Switch | FormFieldOptions.Range | FormFieldOptions.Color | FormFieldOptions.Rate | FormFieldOptions.Slider | FormFieldOptions.Radio | FormFieldOptions.Text;
export declare const registerFormComponent: Map<string, () => Promise<{
    default: Component<any>;
}>>;
export declare const defineFormTemplate: (i: FormTemplate[]) => FormTemplate[];
