import { ElementViewModel, IArea, IElementViewModel, ISurfaceContext, SurfaceElementBase } from '@devexpress/analytics-core/analytics-elements'; import { DxPromise, ISelectionTarget, IUnitProperties } from '@devexpress/analytics-core/analytics-internal'; import { IModelSerializer } from '@devexpress/analytics-core/analytics-utils'; import { IExpressionOptions } from '@devexpress/analytics-core/analytics-widgets'; import * as ko from 'knockout'; import { DataBinding } from '../dataObjects/dataBinding'; import { HorizontalAnchoring, IAnchoringProperties, VerticalAcnhoring } from './properties/anchoring'; import { IExpressionBinding } from './properties/expressionBinding'; import { SortingOptions } from './properties/sortingOptions'; import { IReportControlMetadata } from './utils/controlsFactory'; import { ControlType } from './utils/_controlTypes'; import { XRReportElementViewModel } from './xrReportelement'; import { ActionTypeBase } from './properties/action'; declare enum FieldNameOptions { DisplayName = 0, RealName = 1 } export declare class XRControlViewModel extends XRReportElementViewModel { dispose(): void; anchoring(parent: IAnchoringProperties): void; beforeDeserialize(model: any, parent: ElementViewModel, serializer?: IModelSerializer): void; _realText: ko.Computed | ko.Observable; textUI: ko.Computed | ko.Observable; _textUI: ko.Observable; _textArea: ko.Computed | ko.Observable; getFieldName(value: string, fieldNameOption: FieldNameOptions): { dataMember: string; namePromise: DxPromise; }; setTextValue(fieldNamePromise: DxPromise, originText: string, replacedText: string, propertyToSet: ko.Computed | ko.Observable): void; constructor(control: any, parent: ElementViewModel, serializer?: IModelSerializer); isIntersectionEnabled(): boolean; getNearestParent(target: IElementViewModel): IElementViewModel; isPropertyDisabled(name: any): any; isPropertyVisible(name: any): boolean; hasExpressionBindings(): boolean; hasDataBindingByName(property?: string): boolean; get hasDefaultBindingProperty(): boolean; getExpressionBinding(property?: string, event?: string): string; setExpressionBinding(value: string, property?: string, event?: string): void; getControlInfo(): IReportControlMetadata; getDefaultBinding(): IExpressionOptions | DataBinding; textArea: ko.Observable | ko.Computed; multiline: ko.Observable | ko.Computed; name: ko.Observable | ko.Computed; text: ko.Observable | ko.Computed; textFormatString: ko.Observable | ko.Computed; controls: ko.ObservableArray; popularDataBinding: any; anchorVertical: ko.Observable | ko.Computed; anchorHorizontal: ko.Observable | ko.Computed; vertAnchoring: VerticalAcnhoring; horAnchoring: HorizontalAnchoring; hasBindings: ko.Computed; interactiveSorting: SortingOptions; expressionBindings: ko.ObservableArray; dataBindingsAreValid: ko.Observable | ko.Computed; action?: ko.Observable; } export declare class XRControlSurfaceBase> extends SurfaceElementBase { private delta; private _isThereIntersectionWithUsefulArea; static _appendValue(accumulator: string, value: string, needToAppend?: boolean): string; protected get _unitAbsoluteRect(): IArea; private get _unitRect(); constructor(control: M, context: ISurfaceContext, unitProperties: IUnitProperties); checkParent(surfaceParent: ISelectionTarget): boolean; isThereIntersection(rect1: IArea, rect2: IArea): boolean; isThereIntersectionWithParent(parentRect: IArea, childRect: IArea): boolean; isThereIntersectionWithUsefulArea(): boolean; isThereIntersectionWithCrossBandControls(currentRect?: IArea): boolean; isThereIntersectionWithControls(): boolean; isThereIntersectionWithParentCollection(currentRect: any, controlRectProperty?: string): boolean; isThereIntersectionWithChildCollection(controlRectProperty?: string): boolean; isThereIntersectionWithNeighborsCollection(currentRect: any, collectionControls: any, controlRectProperty?: string): boolean; isThereIntersectionWithChildControls(collectionControls: any, controlRectProperty?: string): boolean; canSnap(): boolean; getAdornTemplate(): string; hasDataBindingByName(propertyName: string): boolean; get hasBindings(): boolean; get bindingsIsValid(): any; get bindingsHasWarning(): any; contentSizes: any; contentHeightWithoutZoom: any; contentWidthWithoutZoom: any; borderCss: any; template: string; selectiontemplate: string; contenttemplate: string; isIntersect: ko.Computed; adorntemplate: ko.Computed; showDropBorders?: ko.Observable; displayNameParameters: ko.PureComputed<{ text: any; isExpression: boolean; dataSource: any; dataMember: any; summaryFunc: any; dataMemberOffset: any; allowMarkupText: boolean; wordWrap: boolean; fontSize: number; fontUnit: any; }>; displayName: ko.PureComputed; displayText(): any; } export declare class XRControlSurface extends XRControlSurfaceBase { dispose(): void; static _unitProperties: IUnitProperties; constructor(control: XRControlViewModel, context: ISurfaceContext); controls: ko.ObservableArray; } export {};