import { Type } from "@angular/core";

/**
 * Read-only representation of the field and editable representation
 * and type of settings.
 *
 * @export
 * @interface FieldRegistration
 */
export declare interface FieldRegistration {
    /**
     * The component which will be used when the field is editable
     *
     * @type {Type<any>}
     * @memberof FieldRegistration
     */
    writeComponent: Type<any>;

    /**
     * The component which will be used when the field is in read-only mode.
     *
     * @type {Type<any>}
     * @memberof FieldRegistration
     */
    readComponent?: Type<any>;

    /**
     * Settings class which will be used to configure the components.
     *
     * @type {Type<any>}
     * @memberof FieldRegistration
     */
    settingsType?: Type<any>;
}
