import { ValidatorFn } from "@angular/forms";

/**
 * Represents the base methods and properties that all field
 * settings should have.
 *
 * @export
 * @class SettingsBase
 */
export declare class SettingsBase {

    /**
     * Gets or sets the recommended characters for the current field.
     * This value is automatically filled based on the server field configuration (provided the field has such a configuration)
     */
    public recommendedCharacters: number;

    /**
     * Initializes the settings. The metadata can contain information
     * about validators, instructional text or if the title should be
     * shown or not.
     *
     * @param {*} metadata
     * @memberof SettingsBase
     */
    init(metadata: any);

    /**
     * Returns the validators
     */
    getValidators(): ValidatorFn[]
}
