/** Core */ import { CoreComponent } from "cmf.core/src/core"; /** Angular2 */ import * as ng from "@angular/core"; import { OnValidate, OnValidateArgs } from '../../directives/validator/validator'; export declare const ERROR_CLASS = "text-input-error"; /** * @whatItDoes * Comments basic component. * * @howToUse * This component is used with the inputs and outputs mentioned below. * * ### Inputs * `string` : **comments** - Comments textual content ; * `boolean` : **required** - Defines if the comments are required ; * `boolean` : **expanded** - Defines if the comments section are expanded . * * ### Outputs * `any` : **comments** - Comments update event . * * ### Example * To use the component, assume this HTML Template as an example: * * ```HTML * * ``` * */ export declare class Comments extends CoreComponent implements OnValidate { private _element; private _panelBar; /** * Gets or sets the text area classes */ _textAreaClasses: any; /** * Comments textual content */ comments: string; /** * Defines if the comments are required */ required: boolean; /** * Defines if the comments section are expanded */ expanded: boolean; /** * Comments update event */ commentsValueChanged: ng.EventEmitter; /** * @method constructor */ constructor(elementRef: ng.ElementRef, _element: ng.ElementRef); /** * Internal Validation Method */ private internalValidation; panelBarHeaderClicked: (event: any) => void; onChange($event: any): void; /** * On Validate method * * @param args Validation arguments given by the framework */ onValidate(args: OnValidateArgs): Promise; /** * Resets the styling option of the validation process * * @see OnValidate interface */ reset(): Promise; } export declare class CommentsModule { }