import { HostElementComponent, Generic } from "cmf.core/src/core"; import * as ng from "@angular/core"; /** * onChangeDetected Interface * * This interface is designed to work together with the 'cmf-core-controls-detect-changes-when' directive {@see DetectChangesWhen} */ export interface OnChangeDetected { /** * On Change Detected Handler */ onChangeDetected(): void; } /** * Detect Changes Directive * NOTE: this directive should only be used on components that implement the {@see onChangeDetected} interface. * * This directive is listening for the Angular onChanges {@see ng.OnChanges} event and * will trigger the onChangeDetected method on the host component. * * ## Example * * ```html * ... * ``` */ export declare class DetectChangesWhen extends Generic implements ng.OnChanges { /** * Gets or sets the input received by the directive. */ input: any; /** * Directive's host component. */ hostComponent: OnChangeDetected; /** * DetectChangesWhen Directive Constructor * * @param appViewManager Application View Manager * @param elementRef Element Reference. */ constructor(viewContainerRef: ng.ViewContainerRef, hostElementComponent: HostElementComponent); /** * Angular's onChanges event handler */ ngOnChanges(changes: any): void; } export declare class DetectChangesWhenModule { }