import { ChangeDetectorRef } from '../change_detection/change_detector_ref';
import { AppView } from './view';
export declare abstract class ViewRef extends ChangeDetectorRef {
destroyed: boolean;
abstract onDestroy(callback: Function): any;
}
/**
* Represents an Angular View.
*
*
* A View is a fundamental building block of the application UI. It is the smallest grouping of
* Elements which are created and destroyed together.
*
* Properties of elements in a View can change, but the structure (number and order) of elements in
* a View cannot. Changing the structure of Elements can only be done by inserting, moving or
* removing nested Views via a {@link ViewContainerRef}. Each View can contain many View Containers.
*
*
* ### Example
*
* Given this template...
*
* ```
* Count: {{items.length}}
*
* ```
*
* ... we have two {@link ProtoViewRef}s:
*
* Outer {@link ProtoViewRef}:
* ```
* Count: {{items.length}}
*
* ```
*
* Inner {@link ProtoViewRef}:
* ```
* {{item}}
* ```
*
* Notice that the original template is broken down into two separate {@link ProtoViewRef}s.
*
* The outer/inner {@link ProtoViewRef}s are then assembled into views like so:
*
* ```
*
* Count: 2
*
*
* ```
*/
export declare abstract class EmbeddedViewRef extends ViewRef {
/**
* Sets `value` of local variable called `variableName` in this View.
*/
abstract setLocal(variableName: string, value: any): void;
/**
* Checks whether this view has a local variable called `variableName`.
*/
abstract hasLocal(variableName: string): boolean;
rootNodes: any[];
/**
* Destroys the view and all of the data structures associated with it.
*/
abstract destroy(): any;
}
export declare class ViewRef_ implements EmbeddedViewRef {
private _view;
constructor(_view: AppView);
internalView: AppView;
/**
* Return `ChangeDetectorRef`
*/
changeDetectorRef: ChangeDetectorRef;
rootNodes: any[];
setLocal(variableName: string, value: any): void;
hasLocal(variableName: string): boolean;
destroyed: boolean;
markForCheck(): void;
detach(): void;
detectChanges(): void;
checkNoChanges(): void;
reattach(): void;
onDestroy(callback: Function): void;
destroy(): void;
}