import { PropertyLevel, TypeProperty } from '@contrail/types'; import { DocumentElement } from '../../types/document-element'; export declare enum DYNAMIC_TEXT_DATA_SOURCE { PROJECT = "project", BOARD = "board", SHOWCASE = "showcase", FRAME = "frame", SECTION = "section" } export type DynamicTextContainerSource = DYNAMIC_TEXT_DATA_SOURCE.FRAME | DYNAMIC_TEXT_DATA_SOURCE.SECTION; export interface DynamicTextContainer { name: string; id?: string; source?: DynamicTextContainerSource; } export declare enum DynamicTextDisplayFunction { VALUE = "value", LABEL = "label", UNIQUE_ARRAY = "uniqueArray", FIRST = "first", LAST = "last", MIN = "min", MAX = "max", AVERAGE = "average", SUM = "sum" } export declare const MOVE_TO_FRAME_TEXT = "Move to a frame"; export declare const MOVE_TO_SECTION_TEXT = "Move to a section"; export declare const CLICK_TO_CONFIGURE = "Click to configure"; export declare function placeholderForMissingContainer(entityType: string): string; export declare function isPlaceholderText(text: string): boolean; export declare const HARD_CODED_TEXT: { 'project.name': string; 'project.createdBy.email': string; 'project.updatedBy.email': string; 'board.name': string; 'board.createdBy.email': string; 'board.updatedBy.email': string; 'showcase.name': string; 'showcase.createdBy.email': string; 'showcase.updatedBy.email': string; 'frame.name': string; 'frame.count': string; 'frame.itemFamilyCount': string; 'frame.itemOptionCount': string; 'frame.colorCount': string; 'section.name': string; 'section.count': string; 'section.itemFamilyCount': string; 'section.itemOptionCount': string; 'section.colorCount': string; }; export declare function isContainerBinding(bindingProperty: string | null | undefined): boolean; export declare class DynamicTextUtil { static componentsBoundTo(componentElements: DocumentElement[], entityType: string): DocumentElement[]; static isDynamicText(documentElement: DocumentElement): boolean; static takesValueFromContainer(bindingProperty: string | null | undefined): boolean; static getDynamicTextValue(dynamicTextElement: DocumentElement, property: TypeProperty, propertyLevel: PropertyLevel, container: DynamicTextContainer | null, componentModels: any[], ownerReferenceModel?: any): string; static calculateSize(dynamicTextElement: DocumentElement, entityType: any, text: string): { width: number; height: number; }; private static rankValue; static getTextFromFrameMemberValues(displayFunction: string, property: any, memberValues: any[]): string; private static getItemCount; }